This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: basic_string linking related problem
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Cc: kgardas at objectsecurity dot com
- Date: Wed, 9 Oct 2002 15:30:45 -0500
- Subject: Re: basic_string linking related problem
- Organization: Red Hat / Chicago
... 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