public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Making strings of arbitrary character types
@ 2004-12-01  9:23 Nick NoSpam
  2004-12-01  9:39 ` Paolo Carlini
  0 siblings, 1 reply; 9+ messages in thread
From: Nick NoSpam @ 2004-12-01  9:23 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-12-02  5:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-01  9:23 Making strings of arbitrary character types Nick NoSpam
2004-12-01  9:39 ` Paolo Carlini
2004-12-01 10:08   ` Nick NoSpam
2004-12-01 10:17     ` Nick NoSpam
2004-12-01 10:20       ` Paolo Carlini
2004-12-01 16:17         ` Nick NoSpam
2004-12-01 17:57           ` Paolo Carlini
2004-12-01 18:07             ` Paolo Carlini
2004-12-02  5:35             ` Nick NoSpam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).