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: 2016-01-28 10:19:27 UTC

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 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 [istream.formatted.reqmts] and [ostream.formatted.reqmts], change "(exception()&badbit) != 0" to "(exceptions()&badbit) != 0".


Fixes an obvious typo.