From 1db1f585f498e7bf78cd53cf67071b2e3354ead3 Mon Sep 17 00:00:00 2001 From: neargye Date: Wed, 21 Apr 2021 19:21:54 +0300 Subject: [PATCH] fix typo --- include/magic_enum.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {