Title
Are basic_istream and basic_ostream to use (exceptions()&badbit) != 0 ?
Status
cd1
Section
[istream.formatted.reqmts] [ostream.formatted.reqmts]
Submitter
Keith Baker

Created on 2002-07-23.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Fixes an obvious typo.

Date: 2010-10-21.18:28:33

Proposed resolution:

In [istream.formatted.reqmts] and [ostream.formatted.reqmts], change "(exception()&badbit) != 0" to "(exceptions()&badbit) != 0".

Date: 2002-07-23.00:00:00

In [istream.formatted.reqmts] and [ostream.formatted.reqmts] (exception()&badbit) != 0 is used in testing for rethrow, yet exception() is the constructor to class std::exception in [type.info] that has no return type. Should member function exceptions() found in [ios] be used instead?

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2397
2010-10-21 18:28:33adminsetmessages: + msg2396
2002-07-23 00:00:00admincreate