This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Question/problem related to _Bool in type_traits.h
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: Question/problem related to _Bool in type_traits.h
- From: Stephen M. Webb <stephen at bregmasoft dot com>
- Date: Tue, 16 Oct 2001 09:36:55 -0400
- Organization: CRYPTOCard Corporation
- References: <p05100304b7f12c0840c0@[17.202.44.152]>
- Reply-To: stephen at bregmasoft dot com
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