Scoped (class) enums: fundamentals and examples -- Hitesh Kumar

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

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.