Cloner that invokes a member function clone(). More...
Cloner that invokes a member function clone().
clone() shall be a virtual function with the signature C* C::clone() const
, where C is the class type. The returned pointer has to point to a new copy of the object on which clone() is invoked. In case you do not call the new operator to allocate the copy, make sure you also use a corresponding deleter in CopiedPtr.