Topic: Invalidated fstream footnotes in N2134


Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Tue, 20 Feb 2007 11:42:35 CST
Raw View
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

http://www2.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#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:

Remove the current N2134 footnotes 335 (page 902), 336 (page 903)

Greetings from Bremen,

Daniel Kr   gler


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]