libstdc++/10132: filebuf destructor throws exceptions

Benjamin Kosnik bkoz@redhat.com
Thu Apr 24 22:26:00 GMT 2003


The following reply was made to PR libstdc++/10132; it has been noted by GNATS.

From: Benjamin Kosnik <bkoz@redhat.com>
To: =?ISO-8859-1?Q?P=E9tur_Run=F3lfsson?= <peturr02@ru.is>
Cc: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/10132: filebuf destructor throws exceptions
Date: Thu, 24 Apr 2003 17:23:48 -0500

 Actually, principle of least surprise/simplicity probably rules here. I
 suppose the library streambufs should not get in the way of possible
 exceptions, should prevent resource leaks and should instead let io bits
 or user try/catch deal with this.
 
 Let me implement 3, and come up with a filebuf::_M_close throw(). 
 
 -benjamin



More information about the Gcc-prs mailing list