Click here to Skip to main content
15,891,657 members
Articles / Programming Languages / C++

Type Safe Enum in C++

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
19 Mar 2013CPOL2 min read 20.3K   6  
This enum class makes it hard to use it wrongly. Enumeration from one type can’t be mixed with any other data type.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada
I'm the operator with my pocket calculator.

Comments and Discussions