C++ operator new when out of heap.
joel.sherrill at OARcorp.com
Mon Aug 14 20:24:41 UTC 2000
Nick.SIMON at syntegra.bt.co.uk wrote:
> The C++ spec now says that 'new' never returns null, but if out of heap
> throws an exception (a C++ exception that is).
> Does anyone know if this is the case with RTEMS tools & libraries, or is
> null returned as per the old standard? I'm using 4.5.0 beta 3 (soon to be
> beta 3a).
It would depend on what the GNU tools do. The new operator should
be in gcc implementation.
> -- Nick Simon
> I used to think I was uncertain, but now I'm not sure.
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users