Topic: N2369 library problem: Incomplete paragraph [char.traits]/4


Author: =?iso-8859-1?q?Daniel_Kr=FCgler?= <daniel.kruegler@googlemail.com>
Date: Sat, 25 Aug 2007 09:34:34 CST
Raw View
The current content of [char.traits]/p. 4 is given by

"This subclause specifies a struct template, char_traits<charT>,
and two explicit specializations of it, char_traits<char> and
char_traits<wchar_t>, all of which appear in the header <string>
and satisfy the requirements below."

The point is that this paragraph omitts to mention the existence
of the two other (new) explicit char_traits specializations for the
new character types char16_t and char32_t, although the
guarantees given by that paragraph should also apply to them.

Proposed resolution:

Change [char.traits]/p. 4 to say:

"This subclause specifies a struct template, char_traits<charT>,
and four explicit specializations of it, char_traits<char>,
char_traits<char16_t>, char_traits<char32_t>, and
char_traits<wchar_t>, all of which appear in the header <string>
and satisfy the requirements below."

Greetings from Bremen,

Daniel Kr   gler


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: pete@versatilecoding.com (Pete Becker)
Date: Sat, 25 Aug 2007 16:44:43 GMT
Raw View
On 2007-08-25 05:34:34 -0400, Daniel Kr=FCgler=20
<daniel.kruegler@googlemail.com> said:

> The current content of [char.traits]/p. 4 is given by
>=20
> "This subclause specifies a struct template, char_traits<charT>,
> and two explicit specializations of it, char_traits<char> and
> char_traits<wchar_t>, all of which appear in the header <string>
> and satisfy the requirements below."
>=20
> The point is that this paragraph omitts to mention the existence
> of the two other (new) explicit char_traits specializations for the
> new character types char16_t and char32_t, although the
> guarantees given by that paragraph should also apply to them.
>=20

Editorial fix. Thanks.

--=20
  Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The=20
Standard C++ Library Extensions: a Tutorial and Reference=20
(www.petebecker.com/tr1book)


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]