Topic: Defect Report: Incorrect treatment of rdbuf()->close() return type
Author: chris@kohlhoff.com (Christopher Kohlhoff)
Date: Thu, 17 Aug 2006 16:22:22 GMT Raw View
I just spotted a minor problem in 27.8.1.7
[lib.ifstream.members] para 4 and also 27.8.1.13
[lib.fstream.members] para 4. In both places it says:
void close();
Effects: Calls rdbuf()->close() and, if that function returns
false, ...
However, basic_filebuf::close() (27.8.1.2) returns a pointer to the
filebuf on success, null on failure, so I think it is meant to
say "if that function returns a null pointer". Oddly, it is
correct for basic_ofstream.
Cheers,
Chris
---
[ 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 ]