C++11 scoped enums deep dive and comparison with C++98 unscoped enums.
Scoped (class) enums: fundamentals and examples
by Hitesh Kumar
From the article:
Scoped enums (enum class/struct) are strongly typed enumerations introduced in C++11. They address several shortcomings of the old C-style (C++98) enums, mainly associated with type-safety and name collisions.
Add a Comment