C++ operator new when out of heap.

angelo angelo at hunterlink.net.au
Tue Aug 29 23:38:38 UTC 2000


Do you have a reference for this?? I thought the standard was completed in
1988.

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).
>
> TIA,
>
> -- Nick Simon
>
> I used to think I was uncertain, but now I'm not sure.

--
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page

http://users.hunterlink.net.au/~maaaf/

There are those who seek knowledge for the sake of knowledge - that is
CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)






More information about the users mailing list