diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index 59e5866..cd85375 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -213,7 +213,7 @@ class static_string { template constexpr static_string(string_view str, std::integer_sequence) noexcept : chars_{str[I]..., '\0'} {} - char chars_[N + 1]; + char chars_[static_cast(N) + 1]; }; template <>