Title
Extracting a char from a wide-oriented stream
Status
nad
Section
[istream.extractors]
Submitter
Matt Austern

Created on 1998-07-01.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The Standard is correct as written. There is no such extractor and this is the intent of the LWG.

Date: 1998-07-01.00:00:00

27.6.1.2.3 has member functions for extraction of signed char and unsigned char, both singly and as strings. However, it doesn't say what it means to extract a char from a basic_streambuf<charT, Traits>.

basic_streambuf, after all, has no members to extract a char, so basic_istream must somehow convert from charT to signed char or unsigned char. The standard doesn't say how it is to perform that conversion.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg134
1998-07-01 00:00:00admincreate