c++ - Is a C-style enum typedef in C++11 invalid in some cases? -
am having stupid typo can't find? or why typedef
:
typedef enum errorcode_e { no_error, general_error, uninitialized_data_access, allocation_error, read_write_error, no_filestream } errorcode_t;
this error:
error: expected identifier before numeric constant no_error, ^
if not typo, i'm pretty sure did many times in c different in c++?
i'm explicitly compiling c++11 if matters.
Comments
Post a Comment