Specializations of std::char_traits

Nathan Myers ncm-nospam@cantrip.org
Wed Jul 16 21:44:00 GMT 2003


On Wed, Jul 16, 2003 at 11:29:06PM +0200, Gabriel Dos Reis wrote:
>    template<typename charT>
>       struct char_traits : __gnu_cxx::char_traits<charT> { };
> 
> Users can specialize __gnu_cxx::char_traits<> at will on fundamental
> types.  We may provide a definition for the primary template
> __gnu_cxx::char_traits<>.  This we don't create the confusion that
> users can specialize std::templates on fundamental types.
> Comments?

I like this.  No one could believe they were doing something 
portable, but they have what they need to get their work done.

Nathan Myers
ncm-nospam@cantrip.org



More information about the Libstdc++ mailing list