CL /noBool







The positive and negative forms override each other, of course.

The positive form passes to the front-end compiler for C++ only (C1XX). The negative form does not pass to any compiler module.


The C++ language provides a keyword, bool, to represent a built-in type that is specialised to the integral values 0 and 1, which are in turn represented by keywords false and true respectively. Conditional expressions evaluate to this built-in type.

The /noBool option suppresses all three of these keywords and leaves them available as arbitrary identifiers. The integral type that would have been represented by the bool keyword remains built-in. Conditional expressions still evaluate to this type. It is just that the type is not accessible through any identifier.