This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++: new that throw bad_alloc ?
- To: mrs at wrs dot com (Mike Stump)
- Subject: Re: g++: new that throw bad_alloc ?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Fri, 10 Oct 97 17:40:40 PDT
- Cc: egcs at cygnus dot com, lerdsuwa at scf-fs dot usc dot edu
> 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.