From e60301e1be0a0d5bb44f1efd40ff43316121d4d3 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 13 Aug 2010 03:51:20 +0000 Subject: binarized cfg names improved git-svn-id: https://ws10smt.googlecode.com/svn/trunk@538 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/named_enum.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/named_enum.h') 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()); } \ -- cgit v1.2.3