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: -fno-exceptions and bad_alloc


>>>>> Thomas van Gulick <list@utumno.student.utwente.nl> writes:

 > When using -fno-exceptions I still get bad_alloc exceptions
 > thrown at me when the new operator fails. I also tried the
 > fno-check-new flag to no avail.
 > Is there any way to really really turn off exception handling
 > and throwing?

Use new (nothrow).

Jason


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