Title
Exception handling in basic_istream::operator>>(basic_streambuf*)
Status
tc1
Section
[istream.extractors]
Submitter
Matt Austern

Created on 1998-08-11.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

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 (27.4.4.3). If it inserted no characters because it caught an exception thrown while extracting characters from sb and failbit is on in exceptions() (27.4.4.3), then the caught exception is rethrown.

Date: 1998-08-11.00:00:00

27.6.1.2.3, 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.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg149
1998-08-11 00:00:00admincreate