From 9c36cf46c9fa28c68c2573568c6311c8c89e0345 Mon Sep 17 00:00:00 2001 From: terik23 Date: Sun, 28 Apr 2019 15:18:38 +0500 Subject: [PATCH] fix naming and comment --- include/nameof.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }