Title
typo in basic_ios::clear(iostate)
Status
dup
Section
[iostate.flags]
Submitter
Martin Sebor

Created on 2003-09-18.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Duplicate: 412

Date: 2010-10-21.18:28:33

Proposed resolution:

The text ought to be changed from
"If (rdstate() & exceptions()) == 0, returns. ..."
to
"If (state & exceptions()) == 0, returns. ..."

Date: 2003-09-18.00:00:00

The Effects clause in 27.4.4.3, 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.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2604
2010-10-21 18:28:33adminsetmessages: + msg2603
2003-09-18 00:00:00admincreate