[v3] libstdc++/5280

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Jan 23 13:57:00 GMT 2002


In article <Pine.SOL.3.91.1020123101458.29288C-100000@taarna.cygnus.com> you write:
>
>> I changed the template name from _T to _Ti and then the compiler was
>> happy. Is this correct? What am I struggling about here?
>
>What version of the compiler are you using? 

This is a known issue with various system's standard headers.

E.g. classic BSD defines a bunch of macros of the form _[A-Z], in the
implementor's name space, in /usr/include/ctype.h to support the is*()
functions and macros.  _T is one such macro.  FreeBSD changed all this
some time ago to help avoid the common conflict.  Darwin has not
followed suit (yet).

FYI, _T is actually documented in 17_intro/BADNAMES ;-)



More information about the Libstdc++ mailing list