The only thing I could find came from palmtypes.h
// Include the following typedefs if types.h wasn't read.
#if __DEFINE_TYPES_
#ifdef __MWERKS__
#if !__option(bool)
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#endif
#else
#ifndef __cplusplus
#ifndef true
enum {false, true};
#endif
#endif
#endif
#endif /* __TYPES__ */I imagine this works as expected. Do you know if POL defines true and false anywhere?
Brad
Ben Combee wrote:
At 12:12 AM 9/20/2003, Brad Figler wrote:
How come I get an implicit arithmetic conversion warning from 'int' to 'bool' for the followoing line of code?
bool result = ( 1 == 1 ) ? true:false;
I have bool support enabled in the preferences panel.
Verify that you aren't using a header file that #define's "true" and "false" to integer values.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
