I can't check it now in GCC, but wiki says that is the standard - http://en.wikipedia.org/wiki/C%2B%2B11#Strongly_typed_enumerations
31.01.2014 23:13, Liam Devine пишет:
On 31/01/14 13:30, SteelRat wrote:This is much more clear answer! =) 31.01.2014 17:25, Liam Devine пишет:C++11 enums are not supported.I missed this earlier, but in your commented out code you had: //enum State : unsigned char {AFAIK this is only valid for Microsoft's compiler and was a language extension pre C++11.