char_traits patch, round two

Andreas Jaeger aj@suse.de
Tue Aug 13 01:08:00 GMT 2002


Benjamin Kosnik <bkoz@redhat.com> writes:

>> The standard does not have direct support for strings expressed as
>> arrays of "unsigned char".  
>
> Yep. The standard only specifies char and wchar_t specializations for
> std::char_traits.
>
> The correct way to deal with this now is to explicitly specialize
> std::char_traits for user-defined types. That's always been the correct
> way to deal with this, but the generic-mostly-correct definitions that
> were previously in place allowed people to be lazy.

Thanks for the clarification,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libstdc++ mailing list