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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -