This is the mail archive of the
mailing list for the libstdc++ project.
Re: Specializations of std::char_traits
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Pétur Runólfsson <peturr02 at ru dot is>
- Cc: "Benjamin Kosnik" <bkoz at redhat dot com>, <austern at apple dot com>, <ncm-nospam at cantrip dot org>, <libstdc++ at gcc dot gnu dot org>
- Date: 17 Jul 2003 13:59:07 +0200
- Subject: Re: Specializations of std::char_traits
- Organization: Integrable Solutions
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028F559B@nike.hir.is>
Pétur Runólfsson <email@example.com> writes:
| >As of int_type, I was contemplating the idea of using the promoted-to
| >type of char_type.
| I don't think it matters if int_type or the functions using it are
| provided or not - they are only used by iostreams, and iostreams
| won't work unless some facets are provided (ctype, numpunct for
| numeric formatting, codecvt for file I/O).
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.