diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 03:51:20 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-13 03:51:20 +0000 |
commit | 84009c98d9a0a2e3ecd801ebb92ed47ee3f3328b (patch) | |
tree | 9fa1f2467d4c7b82444652498d31622c99d69ebd /utils/named_enum.h | |
parent | 46349d90291dc755225863552eb19beb1038c505 (diff) |
binarized cfg names improved
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@538 ec762483-ff6d-05da-a07a-a48fb63a330f
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()); } \ |