This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Making strings of arbitrary character types
- From: Nick NoSpam <nicknospam at optonline dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 01 Dec 2004 04:23:37 -0500
- Subject: Making strings of arbitrary character types
I read the section: "Making strings of arbitrary character
types" (http://gcc.gnu.org/onlinedocs/libstdc
++/21_strings/howto.html#5) ; very helpful.
With GCC 3.3.2, the section is spot on--trying something like
basic_string<unsigned char>--yields linker errors about missing
char_traits for unsigned char.
But with GCC 3.4.2, basic_string<unsigned char> works out of the box.
Does 3.4.2 provide a specialization for this type (and possibly others)?
If so, is it intentional (ie. can I expect it in future versions)? Or
should I specialize char_traits for portability?
--
Regards,
Nick G.
http://www.wheeloyum.com