Making strings of arbitrary character types
Nick NoSpam
nicknospam@optonline.net
Wed Dec 1 09:23:00 GMT 2004
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
More information about the Gcc
mailing list