4 /* ------------------------------------------------------------ */
20 class Derived : public Base0, public Base1
27 /* ------------------------------------------------------------ */
32 Dummy(Base0 * theBase) {}
36 /* ------------------------------------------------------------ */
44 ConstSmartPtr(T const* theItem);
46 operator T const*() const
54 class SmartPtr : public ConstSmartPtr<T>
58 : ConstSmartPtr<T>(theItem) {}
61 { return this->_item(); }
64 { return this->_item(); }
67 /* ------------------------------------------------------------ */
72 SmartPtr<Derived> myObj = new Derived();
74 Dummy th1(myObj); // Doesn't work under Cygnus
75 Dummy th2((Base0 *) myObj); // Doesn't work either
78 /* ------------------------------------------------------------ */