<new>ヘッダをインクルードしてnewをnew(nothrow)に変更すれば、古いnewと同じ動作をする。

#include <new>

char* ptr = new(nothrow) char[5] 
if (!ptr) return;