This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.

58. Extracting a char from a wide-oriented stream

Section: [istream.extractors] Status: NAD Submitter: Matt Austern Opened: 1998-07-01 Last modified: 2017-04-22

Priority: Not Prioritized

View all other issues in [istream.extractors].

View all issues with NAD status.

Discussion: 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.


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