This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch: fstreams should check results of close()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]