This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/10132: filebuf destructor throws exceptions
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Pétur Runólfsson <peturr02 at ru dot is>
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Thu, 24 Apr 2003 17:23:48 -0500
- Subject: Re: libstdc++/10132: filebuf destructor throws exceptions
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028F5569@nike.hir.is>
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