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.