Created on 2003-09-18.00:00:00 last changed 171 months ago
Rationale:
Duplicate: 412
Proposed resolution:
The text ought to be changed from
"If (rdstate() & exceptions()) == 0, returns. ..."
to
"If (state & exceptions()) == 0, returns. ..."
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:33 | admin | set | messages: + msg2604 |
2010-10-21 18:28:33 | admin | set | messages: + msg2603 |
2003-09-18 00:00:00 | admin | create |