From c0e05bb407fb29cb9efd5c0c0384bb8955f316cc Mon Sep 17 00:00:00 2001 From: Neargye Date: Mon, 3 Sep 2018 19:42:22 +0500 Subject: [PATCH] fix macros --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 75fca67..f269b5b 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -497,7 +497,7 @@ constexpr cstring NameofRaw(const char* name, std::size_t size) { #define NAMEOF_RAW(...) ::nameof::NameofRaw(#__VA_ARGS__, (sizeof(#__VA_ARGS__) / sizeof(char)) - 1) // Used to obtain the simple (unqualified) string name of a enum variable. -#define NAMEOF_ENUM(...) ::nameof::NameofEnum::type>(__VA_ARGS__) +#define NAMEOF_ENUM(...) ::nameof::NameofEnum<::std::decay::type>(__VA_ARGS__) // Used to obtain the string name of a type. #define NAMEOF_TYPE(...) ::nameof::NameofType()