From a23f4fac65771578e36b2fed8dfb026d2508e96b Mon Sep 17 00:00:00 2001 From: neargye Date: Thu, 14 Nov 2019 20:14:02 +0500 Subject: [PATCH] fix nameof_enum() --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 0804d20..d5577ef 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -610,7 +610,7 @@ template constexpr auto name = detail::n(); static_assert(name.size() > 0, "Enum value does not have a name."); - return cstring{name}; + return name; } // Obtains string name of type, reference and cv-qualifiers are ignored.