Original Post
// Old code:
MyClass* pMyClass = new MyClass;
// use pointer..
// non-exception code:
#include <new>
MyClass* pMyClass = new(std::nothrow) MyClass;
if (pMyClass != NULL)
// use pointer.. new (sizeof(MyClass), std::nothrow) version, and a few more for good luck. I just get a:
error C2665: 'new' : none of the 3 overloads can convert parameter 2 from type 'const struct std::nothrow_t'
All the time