Question/problem related to _Bool in type_traits.h
Ira Ruben
ira@apple.com
Mon Oct 15 17:17:00 GMT 2001
Sometime in the past, specifically according to gcc/ChangeLog.2
(8/29/99), Zack Weinberg added a #define for '_Bool' to stdbool.h to
define it as the type 'bool'. This means that now with gcc 3.x you
can no longer include both stdbool.h and libstdc++'s type_traits.h in
the same compilation because type_traits.h defines a _Bool template.
It didn't in 2.95.x days which is why this wasn't a problem until now
with gcc 3.x.
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.
Ira Ruben
Apple Computer, Inc.
More information about the Libstdc++
mailing list