Click here to Skip to main content
15,885,435 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.7K   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.
Mac OS X        	2y�ATTR���com.apple.TextEncodingutf-8;134217984

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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