diff options
Diffstat (limited to 'utils/named_enum.h')
-rwxr-xr-x | utils/named_enum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/named_enum.h b/utils/named_enum.h index b459b4a9..447dff78 100755 --- a/utils/named_enum.h +++ b/utils/named_enum.h @@ -74,9 +74,9 @@ inline void throw_enum_error(std::string const& enumtype,std::string const& msg) /// declare the access function and define enum values #define DECLARE_NAMED_ENUM_T(DEF,EnumType) \ - typedef enum { \ + enum EnumType { \ DEF(NAMED_ENUM_VALUE,EnumType) \ - } EnumType; \ + }; \ const char *GetName(EnumType dummy); \ EnumType Get ## EnumType (const char *string); \ inline EnumType Get ## EnumType (std::string const& s) { return Get ## EnumType (s.c_str()); } \ |