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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: basic_string linking related problem


... your link error is coming from an instantiation of
char_traits<unsigned char>. This instantiation is not specified in the
C++ standard. Furthermore, using basic types to specialize standard
components, instead of user-defined types, is not legal.

It is, however, a seemingly well-established practice. 

There has been a lot of discussion of this, mostly on Fridays during the
last two months on the libstdc++ list. If you search for this, you'll
find workarounds.

Perhaps char_traits specializations should be added for basic types.

-benjamin 


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