This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Dup status.
Section: 188.8.131.52 [iostate.flags] Status: Dup Submitter: Martin Sebor Opened: 2003-09-18 Last modified: 2017-02-03
Priority: Not Prioritized
View all other issues in [iostate.flags].
View all issues with Dup status.
Duplicate of: 412
The Effects clause in 184.108.40.206, p5 describing the effects of a call to the ios_base member function clear(iostate state) says that the function only throws if the respective bits are already set prior to the function call. That's obviously not the intent. If it was, a call to clear(badbit) on an object for which (rdstate() == goodbit && exceptions() == badbit) holds would not result in an exception being thrown.
The text ought to be changed from
"If (rdstate() & exceptions()) == 0, returns. ..."
"If (state & exceptions()) == 0, returns. ..."