diff --git a/include/nameof.hpp b/include/nameof.hpp index 210a8b2..c878256 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -87,8 +87,8 @@ template } template -[[nodiscard]] constexpr std::string_view enum_name_impl() noexcept { - static_assert(std::is_enum_v, "nameof::enum_name_impl requires enum type."); +[[nodiscard]] constexpr std::string_view nameof_enum_impl() noexcept { + static_assert(std::is_enum_v, "nameof::nameof_enum_impl requires enum type."); #if defined(__clang__) constexpr std::string_view name{__PRETTY_FUNCTION__, sizeof(__PRETTY_FUNCTION__) - 2}; #elif defined(__GNUC__) && __GNUC__ >= 9 @@ -112,8 +112,8 @@ template template [[nodiscard]] constexpr decltype(auto) enum_names_impl(std::integer_sequence) noexcept { - static_assert(std::is_enum_v, "nameof::detail::enum_strings_impl requires enum type."); - constexpr std::array names{{enum_name_impl(I + O)>()...}}; + static_assert(std::is_enum_v, "nameof::detail::enum_names_impl requires enum type."); + constexpr std::array names{{nameof_enum_impl(I + O)>()...}}; return names; }