Topic: nitpicky differences for basic_*fstream::close
Author: Ray Lischner <dontspamme@spam.you>
Date: Sat, 6 Jul 2002 06:23:04 GMT Raw View
The description of basic_ofstream::close (Section 27.8.1.10) begins, "Calls
rdbuf()->close() and, if that function fails (returns a null pointer)...,"
which is fine.
The description of basic_fstream::close (Section 27.8.1.13) reads "Calls
rdbuf()->close() and, if that function returns false,..." (where "false" is
in the plain text typeface). This description is less precise, but a null
pointer is logically false, so the description is correct.
The description of basic_ifstream::close (Section 27.8.1.7) reads, "Calls
rdbuf()->close() and, if that function returns false..." where "false" is
set in the literal typeface.
Ideally, all three descriptions should be the same as the one from
basic_ofstream.
--
Ray Lischner, author of C++ in a Nutshell (forthcoming, Q4 2002)
http://www.tempest-sw.com/cpp/
---
[ 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.jamesd.demon.co.uk/csc/faq.html ]