From f5d6f707a97928198ab29d5178b89653db75d45c Mon Sep 17 00:00:00 2001 From: neargye Date: Mon, 8 Aug 2022 14:15:53 +0400 Subject: [PATCH] try fix IntelliSence --- 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 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 <>