|
BDE 4.14.0 Production release
|
Provide an attribute class that is not equal comparable.
This component provides a single, unconstrained (value-semantic) attribute class, NonEqualComparableTestType, that does not provide equality-comparison operators. This is particularly valuable when test containers that should work with non-equal-comparable types.
data: representation of the class valueThis section illustrates intended use of this component.
Suppose we wanted to show NonEqualComparableTestType can't be equal compared.
First, we create two NonEqualComparableTestType objects, X and Y:
Now, we show that equal comparing X and Y will not compile: