diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 112bfcf..4be7cc3 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -476,7 +476,7 @@ template > 0) ? static_cast(values_v.front()) : U{0}; template > -inline constexpr auto max_v = (count_v >) 0 ? static_cast(values_v.back()) : U{0}; +inline constexpr auto max_v = (count_v > 0) ? static_cast(values_v.back()) : U{0}; template > constexpr std::size_t range_size() noexcept {