This is the mail archive of the gcc@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]

Re: g++: new that throw bad_alloc ?



> Do others think we should just turn on a throwing new, and work it
> that way?

It's really risk-free to do the right thing.  The reason is that
the current default behavior is to just kill the whole program if
new fails (after any new-handlers get a chance).  Even if the throwing
new dumps core instead, that is no worse than what users have now.




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