This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/10132: filebuf destructor throws exceptions


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


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