Question/problem related to _Bool in type_traits.h

Gabriel Dos Reis gdr@codesourcery.com
Tue Oct 16 07:08:00 GMT 2001


"Stephen M. Webb" <stephen@bregmasoft.com> writes:

| On Mon, 15 Oct 2001, Ira Ruben wrote:
| >
| > Does anyone have a suggested (permanent) fix for this problem.  For 
| > the time being I've added a #undef _Bool just before the template 
| > definition in type_traits.h.
| 
| Oh yeah, the dangers of using the C preprocessor.

The use of the name _Bool in tyupe_traits.h is just unfortunate. It is
a keyword in C99. 

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com



More information about the Libstdc++ mailing list