642. Invalidated fstream footnotes in N2134

Section: [ifstream.members], [ofstream.members] Status: NAD Editorial Submitter: Daniel Krügler Opened: 2007-02-20 Last modified: 2016-01-28 10:19:27 UTC

Priority: Not Prioritized

View all other issues in [ifstream.members].

View all issues with NAD Editorial status.


The standard wording of N2134 has extended the 14882:2003(E) wording for the ifstream/ofstream/fstream open function to fix a long standing problem, see 409.

Now it's properly written as

"If that function does not return a null pointer calls clear(), otherwise calls setstate(failbit)[..]"

instead of the previous

"If that function returns a null pointer, calls setstate(failbit)[..]

While the old footnotes saying

"A successful open does not change the error state."

where correct and important, they are invalid now for ifstream and ofstream (because clear *does* indeed modify the error state) and should be removed (Interestingly fstream itself never had these, although they where needed for that time).

Proposed resolution:

In [ifstream.members], remove footnote:

334) A successful open does not change the error state.

In [ofstream.members], remove footnote:

335) A successful open does not change the error state.