[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Using the bool Type

Turn on the Enable bool Support option if you want to use the standard C++ bool type to represent true and false. Turn this option off if recognizing bool, true, or false as keywords would cause problems in your program.
Enabling the bool data type and its true and false values is not equivalent to defining them using typedef and #define. The C++ bool type is a distinct type defined by the ANSI/ISO C++ Standard. Source code that does not treat it as a distinct type might not compile properly.
For example, some compilers other than treat CodeWarrior C++ treat the bool type as equivalent to the unsigned char data type. Source code that compiles successfully on such a compiler might not compile without errors with CodeWarrior C++ unless the Enable bool Support option is off.
This option corresponds to the pragma bool. To check whether this option is on, use __option (bool). By default, this option is off.
See also "bool" and "Checking Options."
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000