BDE 4.14.0 Production release
|
Provide a class that overloads the non-typical operators.
This component provides a single, unconstrained (value-semantic) attribute class, NonTypicalOverloadsTestType
, that defines overloads to some non-typically-overloaded operators ('operator new', operator delete
, and operator&
) to ensure that they do not get invoked.
data
: representation of the class valueThis section illustrates intended use of this component.
Suppose that we wanted to show that calling operator new
and operator delete on
NonTypicalOverloadsTestType' causes an assertion.
First, we verify that calling operator new
will result in an assertion:
Finally, we verify that calling operator delete
will result in an assertion: