Possible Duplicate:
When should BOOL and bool be used in C++?
I'm currently tidying up a large C++ code base, which is primarily MFC and has a lot of BOOL variables and parameters. It also has a number of bools in there, which when compared yield a compiler warning;
warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
The plan is move to a clean compile with no warnings, at warning level 4 in VS2008. My choices are as follows;
- Change all bools to BOOLs Change all
- BOOLs to bools
- Have the compiler not report warning 4800
What would you do, and more importantly why? I'm currently leaning towards the first option, as given the code contains a lot of MFC, there are a number of framework functions returning BOOL.
Edit Oops, previously asked question gives me the info I want. Closing...