Skip to content

Commit

Permalink
C arrays are iterable too!
Browse files Browse the repository at this point in the history
(This doesn't really *do* anything, since we have an overload for printing C
arrays to take precedence over array->pointer decay, but it's more correct, and
that makes it more good.)
  • Loading branch information
jimporter committed Feb 22, 2024
1 parent 690f795 commit bda6660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mettle/output/traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace mettle {

template<typename T>
struct is_iterable<T, std::void_t<
decltype(std::begin(std::declval<T>()), std::end(std::declval<T>()))
decltype(std::begin(std::declval<T&>()), std::end(std::declval<T&>()))
>> : std::true_type {};


Expand Down

0 comments on commit bda6660

Please sign in to comment.