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: [istream.formatted.reqmts], [ostream.formatted.reqmts] Status: CD1 Submitter: Keith Baker Opened: 2002-07-23 Last modified: 2017-02-03

Priority: Not Prioritized

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

View all issues with CD1 status.


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 21.7.2 [] that has no return type. Should member function exceptions() found in 30.5.5 [ios] be used instead?

Proposed resolution:

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


Fixes an obvious typo.