I am migrating a mid-size application from C to C ++. It has nothing to do with exceptions, and this should not change.
Understanding (C ++) my (wrong!) Understanding was (until I found out about it hard) that the new operator (by default) returns a NULL pointer in case of a distribution problem. However, this was only true until 1993 (or so). It is currently throwing an std :: bad_alloc exception.
Is it possible to return to the old behavior without rewriting everything to use std :: nothrow with every call?
source
share