Title
Typo in 27.4.4.3
Status
cd1
Section
[iostate.flags]
Submitter
Martin Sebor

Created on 2003-07-10.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

[ Kona: the original proposed resolution wasn't quite right. We really do mean rdstate(); the ambiguity is that the wording in the standard doesn't make it clear whether we mean rdstate() before setting the new state, or rdsate() after setting it. We intend the latter, of course. Post-Kona: Martin provided wording. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

In [iostate.flags] paragraph 5, replace "If (rdstate() & exceptions()) == 0" with "If ((state | (rdbuf() ? goodbit : badbit)) & exceptions()) == 0".

Date: 2003-07-10.00:00:00

The Effects clause in [iostate.flags] paragraph 5 says that the function only throws if the respective bits are already set prior to the function call. That's obviously not the intent. The typo ought to be corrected and the text reworded as: "If (state & exceptions()) == 0, returns. ..."

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2537
2010-10-21 18:28:33adminsetmessages: + msg2536
2003-07-10 00:00:00admincreate