Commit 028ad4b9 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

changed the gettable_concept

parent 4e91e79a
......@@ -31,9 +31,8 @@ concept arithmetic = arithmetic_base<T> &&arithmetic_assignment<T>;
template <typename T>
concept gettable_container = requires(T a) {
{get<0>(a)};
}
|| requires(T a) { {std::get<0>(a)}; };
{std::tuple_size<std::decay_t<T>>::value}->std::convertible_to<std::size_t>;
};
// so, std::ranges::range is meh because it expects return of begin() being input_output_iterator,
// which has to be def.constructible
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment