The C++ Standard defines operator new as failing by throwing an exception – not returning null. And indeed, this is the behavior in VC++, and has been for a number of releases.
But it hasn’t always been this way. Back in Visual Studio 6...(read more)
↧