Showing posts with label throw. Show all posts
Showing posts with label throw. Show all posts

Thursday, June 07, 2007

new does not throw

at least not always.... it is up to you.

because you all know, there are several new operators... and you can use the one that does not throw

#include 
...
T* p = new (std::nothrow) T;