Created on 2008-04-23.00:00:00 last changed 171 months ago
Proposed resolution:
Change Forward declarations [iostream.forward]:
Header <iosfwd> synopsis
namespace std { template<class charT> class char_traits; template<> class char_traits<char>; template<> class char_traits<char16_t>; template<> class char_traits<char32_t>; template<> class char_traits<wchar_t>; ... }
[ Batavia (2009-05): ]
We agree. Move to NAD Editorial.
[ Original proposed wording. ]
Replace paragraph 4 of [char.traits] by:
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>
, andchar_traits<wchar_t>
, all of which appear in the header <string> and satisfy the requirements below.
[ 2009-05-04 Alisdair adds: ]
The main point of the issue was resolved editorially in N2723, so we are close to NAD Editorial. However, exploring the issue we found a second tweak was necessary for <iosfwd> and that is still outstanding, so here are the words I am long overdue delivering:
Howard: I've put Alisdair's words into the proposed wording section and moved the issue to Review.
[ Sophia Antipolis: ]
Idea of the issue is ok.
Alisdair to provide wording, once that wording arrives, move to review.
[ Alisdair adds: ]
char_traits< char16/32_t > should also be added to <ios_fwd> in [iostream.forward], and all the specializations taking a char_traits parameter in that header.
Paragraph 4 of [char.traits] mentions that this
section specifies two specializations (char_traits<char>
and (char_traits<wchar_t>
). However, there are actually
four specializations provided, i.e. in addition to the two above also
char_traits<char16_t>
and char_traits<char32_t>
).
I guess this was just an oversight and there is nothing wrong with just
fixing this.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg3965 |
2010-10-21 18:28:33 | admin | set | messages: + msg3964 |
2010-10-21 18:28:33 | admin | set | messages: + msg3963 |
2010-10-21 18:28:33 | admin | set | messages: + msg3962 |
2010-10-21 18:28:33 | admin | set | messages: + msg3961 |
2010-10-21 18:28:33 | admin | set | messages: + msg3960 |
2008-04-23 00:00:00 | admin | create |