Daily bit(e) of C++ | Scope enumerations
Daily bit(e) of C++ #386, C++11 scoped enumeration type: enum struct and enum class.
C++11 introduced scope enumerations.
Enumerators of scoped enumerations are named constants contained within the scope of the enumeration, preventing namespace pollution.
Additionally, scoped enumerations are not implicitly convertible to the underlying type.