fix nameof_enum<V>()
This commit is contained in:
parent
05eb30b844
commit
a23f4fac65
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ template <auto V>
|
||||||
constexpr auto name = detail::n<D, V>();
|
constexpr auto name = detail::n<D, V>();
|
||||||
static_assert(name.size() > 0, "Enum value does not have a name.");
|
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.
|
// Obtains string name of type, reference and cv-qualifiers are ignored.
|
||||||
|
|
Loading…
Reference in a new issue