C++ use of bool

Tony van der Hoff OSLib at mk-net.demon.co.uk
Thu May 4 15:09:55 BST 2000


It turns out (I think), that |bool| was introduced as a keyword only in
the 1998 version of the C++ standard. The previous (1991?) standard made
no mention of it, although many pre-1998 implementations contained it.
CFront is based on the earlier standard, and does not implement bool.

It would be extremely useful if C++ 1998 conformant compilers (and in
particular G++) were to identify themselves, much in the same way as C99
does by means of a version macro.

I can't find any public domain access to the standard, so does anyone
out there have access to it? If so, does it define a version macro? Does
G++?

-- 
Tony van der Hoff         |  Mailto:tony at mk-net.demon.co.uk
                          |  Mailto:avanderhoff at iee.org
Buckinghamshire, England  |  http:www.mk-net.demon.co.uk



More information about the oslib-user mailing list