This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: char_traits patch, round two


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


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