This is the mail archive of the
mailing list for the libstdc++ project.
Re: Char_traits (part 2+)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: jack_reeves at bleading-edge dot com
- Cc: bkoz at redhat dot com, libstdc++ at gcc dot gnu dot org
- Date: 16 Aug 2002 18:57:10 +0200
- Subject: Re: Char_traits (part 2+)
- Organization: CodeSourcery, LLC
- References: <F156GQvnbEG10Gai4om0000075f@hotmail.com>
"Jack Reeves" <email@example.com> writes:
| To summarize my interpretation of the Standard:
| 1. 21.1.1/1 is not a definition of template class char_traits<>. It is a
| statement of requirements – just like numerous similar tables in the
I can't find a text to supporte that. Instead, I have this 21.1/1:
This subclause defines requirements on classes representing character
traits, and defines a class template char_traits<charT>, along with
two specializations, char_traits<char> and char_traits<wchar_t>, that
satisfy those requirements.
| What would I do?
| This question is complicated by 3 issues:
| 1. char_traits is declared as a template.
The standard explicitly says it *defines* a template char_traits<>.