summaryrefslogtreecommitdiff
path: root/utils/named_enum.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-13 03:51:20 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-13 03:51:20 +0000
commit84009c98d9a0a2e3ecd801ebb92ed47ee3f3328b (patch)
tree9fa1f2467d4c7b82444652498d31622c99d69ebd /utils/named_enum.h
parent46349d90291dc755225863552eb19beb1038c505 (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-xutils/named_enum.h4
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()); } \