From a9a8892026dcac402c411339265fc43c0f9f8094 Mon Sep 17 00:00:00 2001 From: neargye Date: Tue, 27 Aug 2019 18:14:02 +0500 Subject: [PATCH] fix static_assert msg --- 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 a8bf1c5..e3b7729 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -160,7 +160,7 @@ inline constexpr auto range_v = range(); template [[nodiscard]] constexpr auto n() noexcept { - static_assert(std::is_enum_v, "magic_enum::detail::name requires enum type."); + static_assert(std::is_enum_v, "magic_enum::detail::n requires enum type."); #if defined(__clang__) || defined(__GNUC__) && __GNUC__ >= 9 constexpr auto name = pretty_name({__PRETTY_FUNCTION__, sizeof(__PRETTY_FUNCTION__) - 2}); #elif defined(_MSC_VER)