Click here to Skip to main content
12,077,457 members (46,209 online)
Click here to Skip to main content

Tagged as

Stats

28.5K views
385 downloads
39 bookmarked
Posted

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

, 20 Mar 2015 MIT
This article will show you how to determine the right integer type for a C++ enum in compile time with template meta-programming.
integral_enum_source.zip
integral_enum_source
.DS_Store
__MACOSX
integral_enum_source
._.DS_Store
integral
.DS_Store
integral
._.DS_Store
boost
._boost
loki
._loki
std
.DS_Store
std
._.DS_Store
._std
._integral
test
.DS_Store
test
._.DS_Store
._test
._integral_enum_source

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

Share

About the Author

Gergely Mancz
Team Leader http://www.balabit.com
Hungary Hungary

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160212.1 | Last Updated 20 Mar 2015
Article Copyright 2011 by Gergely Mancz
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid