Created on 2009-10-21.00:00:00 last changed 162 months ago
Proposed resolution:
Modify the state_type typedef in the synopsis of [conversions.buffer] p.2 as shown [This makes the synopsis consistent with [conversions.buffer] p.9]:
namespace std { template<class Codecvt, class Elem = wchar_t, class Tr = std::char_traits<Elem> > class wbuffer_convert : public std::basic_streambuf<Elem, Tr> { public: typedef typenameTrCodecvt::state_type state_type; […] }; }
[ 2011-03-24 Madrid meeting ]
Moved to Immediate
[ 2011-03-06: Howard drafts wording ]
[ Batavia 2010: ]
Howard to draft wording, move to Review. Run it by Bill. Need to move this in Madrid.
The synopsis for wbuffer_convert [conversions.buffer]/2 contains
typedef typename Tr::state_type state_type;
making state_type a synonym for (possibly) some char_traits<x>::state_type.
However, in paragraph 9 of the same section, we have
typedef typename Codecvt::state_type state_type;The type shall be a synonym for Codecvt::state_type.
From what I can see, it might be hard to implement wbuffer_convert if the types were not both std::mbstate_t, but I cannot find a requirement that they must be the same type.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2011-04-11 11:23:23 | admin | set | status: immediate -> wp |
2011-03-24 15:58:06 | admin | set | messages: + msg5675 |
2011-03-24 15:58:06 | admin | set | status: open -> immediate |
2011-03-06 19:27:01 | admin | set | messages: + msg5622 |
2011-03-06 19:27:01 | admin | set | messages: + msg5621 |
2010-11-13 23:03:59 | admin | set | messages: + msg5358 |
2010-11-13 23:03:59 | admin | set | status: new -> open |
2009-10-21 00:00:00 | admin | create |