fix build
This commit is contained in:
parent
790fb28775
commit
52bce4451e
1 changed files with 2 additions and 2 deletions
|
@ -456,12 +456,12 @@ template <typename T,
|
||||||
NAMEOF_CONSTEXPR cstring NameofEnum(T value) {
|
NAMEOF_CONSTEXPR cstring NameofEnum(T value) {
|
||||||
#if defined(__clang__) || defined(_MSC_VER)
|
#if defined(__clang__) || defined(_MSC_VER)
|
||||||
return detail::NameofPretty(
|
return detail::NameofPretty(
|
||||||
std::is_unsigned<std::underlying_type<T>::type>::value
|
std::is_unsigned<typename std::underlying_type<T>::type>::value
|
||||||
? detail::NameofEnumImpl<T, 0>{}(static_cast<int>(value))
|
? detail::NameofEnumImpl<T, 0>{}(static_cast<int>(value))
|
||||||
: detail::NameofEnumImpl<T, -NAMEOF_ENUM_MAX_SEARCH_DEPTH>{}(static_cast<int>(value)),
|
: detail::NameofEnumImpl<T, -NAMEOF_ENUM_MAX_SEARCH_DEPTH>{}(static_cast<int>(value)),
|
||||||
false);
|
false);
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
return std::is_unsigned<std::underlying_type<T>::type>::value
|
return std::is_unsigned<typename std::underlying_type<T>::type>::value
|
||||||
? detail::NameofEnumImpl<T, 0>{}(static_cast<int>(value))
|
? detail::NameofEnumImpl<T, 0>{}(static_cast<int>(value))
|
||||||
: detail::NameofEnumImpl<T, -NAMEOF_ENUM_MAX_SEARCH_DEPTH>{}(static_cast<int>(value));
|
: detail::NameofEnumImpl<T, -NAMEOF_ENUM_MAX_SEARCH_DEPTH>{}(static_cast<int>(value));
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue