patch: fstreams should check results of close()
Phil Edwards
pedwards@disaster.jaj.com
Wed Oct 10 14:00:00 GMT 2001
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
More information about the Libstdc++
mailing list