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

How to get the integer type of a C++ enum

Rate me:
Please Sign up or sign in to vote.
4.94/5 (17 votes)
20 Mar 2015MIT6 min read 63.8K   432   39  
This article will show you how to determine the right integer type for a C++ enum in compile time with template meta-programming.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Employed (other) http://www.otpbank.hu
Hungary Hungary

Comments and Discussions