Section: 184.108.40.206 [iostate.flags] Status: Dup Submitter: Martin Sebor Opened: 2003-09-18 Last modified: 2016-02-10
Priority: Not Prioritized
View all other issues in [iostate.flags].
View all issues with Dup status.
Duplicate of: 412
The Effects clause in 220.127.116.11, 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. ..."