Mail Archives: djgpp/1997/09/02/10:55:24
On 9/2/97 2:08:25 PM mdaya wrote:
>In <340624E0 DOT 7043 AT indy DOT net> Chris Frolik <frolikcc AT indy DOT net> writes:
>
>>What is with this "bool.h" in the DJGPP C++ include directory? Just
>>wondering, as it really isn't needed to declare boolean types, since
>>they can be declared without the header.
>
>I'm may be wrong about this but:
>
>without the bool.h header file you can declare boolean types but the TRUE
and
>FALSE values are not defined.
>
Hello
This header was included in the original HP STL implementation to emulate
the new
C++ keywords 'bool' 'true' 'false', for compilers that did not support
it.
Today it is redundant since most new compilers support these keywords
(including DJGPP)
DJGPP (g++ in general) will accept these keywords without including bool.h
bool.h itself didn't do much. just #defined bool, true, false as int, 1, 0
respectively.
Eyal.
- Raw text -