This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Specializations of std::char_traits
- From: "B. Kosnik" <bkoz at nabi dot net>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 17 Jul 2003 10:11:17 -0500
- Subject: Re: Specializations of std::char_traits
> std::copy(__s2, __s2 + __n, __s1);
> std::fill_n(__s, __n, __a);
Nice. You should make this change to pod_char_traits.h too.
> On the contrary, I think it does matter. int_type is supposed to be
> provided by char_traits<>. Nobody knows whether it is used by users
> only with iostreams. Either we provide something consistent or we don't
> provide a definition at all.
Ditto for state_type. I don't see how a truly generic char_traits can be
done with one template parameter: I'd think (at least) three would be
necessary.
-benjamin