* Testing a pointer for null after new.
Are we allowed to use smart pointers? (It's not listed as allowed in the C++11 features wiki page.) And if so, how does one do it?
For a quick fix, it looks like one can insert (std::nothrow):
srcBuf = new (std::nothrow) Byte [srcLen];
* Testing a pointer for null after new.
Are we allowed to use smart pointers? (It's not listed as allowed in the C++11 features wiki page.) And if so, how does one do it?
For a quick fix, it looks like one can insert (std::nothrow):
srcBuf = new (std::nothrow) Byte [srcLen];