This commit is contained in:
neargye 2022-09-02 17:26:22 +04:00
parent ea3871026a
commit 6a1efd31c1

View file

@ -695,7 +695,7 @@ constexpr auto values() noexcept {
static_assert(range_size > 0, "nameof::enum_range requires valid size."); static_assert(range_size > 0, "nameof::enum_range requires valid size.");
static_assert(range_size < (std::numeric_limits<std::uint16_t>::max)(), "nameof::enum_range requires valid size."); static_assert(range_size < (std::numeric_limits<std::uint16_t>::max)(), "nameof::enum_range requires valid size.");
return values<E, IsFlags, reflected_min_v<E, IsFlags>>(std::make_index_sequence<range_size>{}); return values<E, IsFlags, min>(std::make_index_sequence<range_size>{});
} }
template <typename E, bool IsFlags = false> template <typename E, bool IsFlags = false>