diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 4694878ad..53e01c0a1 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -718,7 +718,7 @@ constexpr void valid_count(bool* valid, std::size_t& count) noexcept { } \ } - MAGIC_ENUM_FOR_EACH_256(MAGIC_ENUM_V); + MAGIC_ENUM_FOR_EACH_256(MAGIC_ENUM_V) if constexpr ((I + 256) < Size) { valid_count(valid, count);