fix nameof_enum<V>()

This commit is contained in:
neargye 2019-11-14 20:14:02 +05:00
parent 05eb30b844
commit a23f4fac65

View file

@ -610,7 +610,7 @@ template <auto V>
constexpr auto name = detail::n<D, V>();
static_assert(name.size() > 0, "Enum value does not have a name.");
return cstring<name.size()>{name};
return name;
}
// Obtains string name of type, reference and cv-qualifiers are ignored.