Use (std::nothrow) with new when the code check for null pointer results.