This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question/problem related to _Bool in type_traits.h


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.

I would also change _Bool in type_traits.h to have some other name, since
I've seen a boatload of code, albiet illegally, that uses _Bool.  Since the name
_Bool as used in type_traits is internal to that file and really means
_HasTrait, it's easy enough and safe enough to just rename the symbol.

__
Stephen M. Webb


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]