Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Safeguard Your enums: Make Them Strongly-Typed

Find out how the newly standardized strongly-typed enum types resolve long-standing bugs and security loopholes.




Application Security Testing: An Integral Part of DevOps

num types have been a valuable asset in the arsenal of C++ programmers for many years. However, their current specification has some security loopholes that can lead to bugs and portability problems. Recently, the C++ standards committee accepted a new proposal for strongly typed enum types. As with all other C++09 proposals, it may take some time before your compiler supports this feature, but it's not a moment too soon to learn how to use this feature or how to make your code C++09-ready.

How can you avoid implicit conversions of enumerators to integral types? Or specify the exact underlying type for a certain enum?

Use C++09 strongly-typed enums.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date