diff --git a/include/nameof.hpp b/include/nameof.hpp index ab7ea02..231590d 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -121,9 +121,9 @@ template template [[nodiscard]] constexpr decltype(auto) enum_strings_impl(std::integer_sequence) noexcept { static_assert(std::is_enum_v, "nameof::detail::enum_strings_impl requires enum type."); - constexpr std::array enum_names{{enum_name_impl(I + O)>()...}}; + constexpr std::array names{{enum_name_impl(I + O)>()...}}; - return enum_names; + return names; } template >