In the following code fragment, the compiler invokes the T*() operator (because a pointer is required) for the TSwizzle<CClassB> object iB , before calling delete .
CClassABC::~CClassABC()
{
...
if (iB.IsPtr())
delete iB;
}
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.