• The C++ 11 solve the known problems with the traditional enums:
• The scope of the enumerators
• Implicit conversion to an integer
• Inability to specify underlying type
For examples:
In ‘old’ C++ In C++ 11
Scope:
Implicit conversion to an integer
Underlying Type
• The example :