The OdSmartPtr class is a typified smart pointer for classes derived from the
OdRxObject. You must define a new type for it using the (typedef) statement.
For example, the class definition:
class MyObj : public OdRxObject
{
public:
MyObj();
~MyObj();
};
typedef OdSmartPtr<MyObj> MyObjPtr;
The testing function has the following implementation: