Click here to Skip to main content
15,888,610 members
Articles / Programming Languages / C++

Never Abuse Boolean to be Your 2 Value Type

Rate me:
Please Sign up or sign in to vote.
4.33/5 (2 votes)
24 Dec 2018CPOL1 min read 5.8K  
Use an enum instead

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)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions