char_traits patch, round two
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Aug 12 09:43:00 GMT 2002
Philipp Thomas <pthomas@suse.de> writes:
| * Gabriel Dos Reis (gdr@integrable-solutions.net) [20020812 13:53]:
|
| > I'm curious: How did you manage to reference std::char_traits<unsigned
| > char>::move()? I'm asking that because, depending on the context you
| > would have to specialize other things as well...
|
| Because in this case the software has this in one of its headers:
|
| typedef std::basic_string<unsigned char> BString;
Aha, that, I understand -- I thought Andreas was reporting a bug
inside V3 code itself. OK, thanks.
[...]
| So it seems like any code using unsigned char based strings needs a
| specialization of char_traits<unsigned char>, right?
Yes.
The standard does not have direct support for strings expressed as
arrays of "unsigned char".
-- Gaby
More information about the Libstdc++
mailing list