Closed dennis95 closed 4 years ago
This is problematic because gcc assumes that new can never return NULL. Also there is the problem that constructors cannot fail on allocation failure.
This has been fixed. Allocation failures in constructors can now be handled by inheriting from ConstructorMayFail and using FAIL_CONSTRUCTOR.
ConstructorMayFail
FAIL_CONSTRUCTOR
This is problematic because gcc assumes that new can never return NULL. Also there is the problem that constructors cannot fail on allocation failure.