This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: patch: fstreams should check results of close()
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: patch: fstreams should check results of close()
- From: Nathan Myers <ncm at nospam dot cantrip dot org>
- Date: Wed, 10 Oct 2001 13:34:52 -0700
- References: <20011010162701.A27409@disaster.jaj.com>
- Reply-To: libstdc++ at gcc dot gnu dot org
On Wed, Oct 10, 2001 at 04:27:01PM -0400, Phil Edwards wrote:
> There's no way I can think of to write a testsuite entry for this;
> how do we /force/ a call to, say, ofstream::close() to fail?
Can't you close the underlying filebuf manually first?
Nathan Myers
ncm at cantrip dot org