Section: 18.104.22.168 [ifstream.members], 22.214.171.124 [ofstream.members] Status: NAD Editorial Submitter: Daniel Krügler Opened: 2007-02-20 Last modified: 2016-02-10
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).
In 126.96.36.199 [ifstream.members], remove footnote:
334) A successful open does not change the error state.
In 188.8.131.52 [ofstream.members], remove footnote:
335) A successful open does not change the error state.