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]

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


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