1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

Remove redundant instantiation (#211)

This commit is contained in:
Alexander 2022-09-02 13:30:16 +03:00 committed by GitHub
parent 1a57977ea3
commit 1b1194bcd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -577,7 +577,7 @@ constexpr auto values() noexcept {
static_assert(range_size > 0, "magic_enum::enum_range requires valid size.");
static_assert(range_size < (std::numeric_limits<std::uint16_t>::max)(), "magic_enum::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, typename U = std::underlying_type_t<E>>