Topic: N2960 Defect - wbuffer_convert::state_type inconsistency


Author: "Bo Persson" <bop@gmb.dk>
Date: Tue, 20 Oct 2009 23:07:06 CST
Raw View
The synopisis 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.


Bo Persson



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