64. Exception handling in basic_istream::operator>>(basic_streambuf*)

Section: [istream.extractors] Status: TC1 Submitter: Matt Austern Opened: 1998-08-11 Last modified: 2017-04-22 20:55:04 UTC

Priority: Not Prioritized

View all other issues in [istream.extractors].

View all issues with TC1 status.

Discussion:, paragraph 13, is ambiguous. It can be interpreted two different ways, depending on whether the second sentence is read as an elaboration of the first.

Proposed resolution:

Replace [istream::extractors], paragraph 13, which begins "If the function inserts no characters ..." with:

If the function inserts no characters, it calls setstate(failbit), which may throw ios_base::failure ( If it inserted no characters because it caught an exception thrown while extracting characters from sb and failbit is on in exceptions() (, then the caught exception is rethrown.