Specializations of std::char_traits
Matt Austern
austern@apple.com
Wed Jul 16 22:37:00 GMT 2003
On Wednesday, July 16, 2003, at 02:35 PM, Benjamin Kosnik wrote:
>
>> We may use a suggestion made on the the LWG reflector: define
>> char_traits as
>>
>> 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 approach too.
>
> It's better than link-only definitions, which are kind of obscure and
> wouldn't be inlined. It also keeps control in the hands of the user.
>
> Perhaps this is the time for some code...
OK, I should have a patch tomorrow.
--Matt
More information about the Libstdc++
mailing list