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()
On Wed, Oct 10, 2001 at 01:34:52PM -0700, Nathan Myers wrote:
> 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?
I was imprecise: we have to force the filebuf's close() to fail instead/also.
Does that make [more] sense?
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams