Title
istream extractors not setting failbit if eofbit is already set
Status
resolved
Section
[istream.sentry]
Submitter
Paolo Carlini

Created on 2010-02-17.00:00:00 last changed 163 months ago

Messages

Date: 2011-05-03.22:13:16

Proposed resolution:

Addressed by paper n3168.

Date: 2011-05-03.22:13:16

[ 2010-10 Batavia ]

Resolved by adopting n3168.

Previous proposed resolution:

Change [istream::sentry] p.2:

2 Effects: If (!noskipws && !is.good()) is false true, calls is.setstate(failbit). Otherwise prepares for formatted or unformatted input. ...

Date: 2011-05-03.22:13:16

Basing on the recent discussion on the library reflector, see c++std-lib-27728 and follow ups, I hereby formally ask for LWG 419 to be re-opened, the rationale being that according to the current specifications, per n3000, it seems actually impossible to seek away from end of file, contrary to the rationale which led 342 to its closure as NAD. My request is also supported by Martin Sebor, and I'd like also to add, as tentative proposed resolution for the re-opened issue, the wording suggested by Sebor, thus, change the beginning of [istream::sentry]/2, to:

2 Effects: If (!noskipws && !is.good()) is false true, calls is.setstate(failbit). Otherwise prepares for formatted or unformatted input. ...

History
Date User Action Args
2010-11-18 14:01:09adminsetstatus: nad editorial -> resolved
2010-11-11 01:20:42adminsetmessages: + msg5325
2010-11-11 01:20:42adminsetstatus: new -> nad editorial
2010-10-21 18:28:33adminsetmessages: + msg1610
2010-02-17 00:00:00admincreate