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

373. Are basic_istream and basic_ostream to use (exceptions()&badbit) != 0 ?

Section: 31.7.5.3.1 [istream.formatted.reqmts], 31.7.6.3.1 [ostream.formatted.reqmts] Status: CD1 Submitter: Keith Baker Opened: 2002-07-23 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [istream.formatted.reqmts].

View all issues with CD1 status.

Discussion:

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

Proposed resolution:

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

Rationale:

Fixes an obvious typo.