CopiedPtr policy that performs a deep value copy. More...
CopiedPtr policy that performs a deep value copy.
If the pointee shall be copied every time the owning CopiedPtr is copied, you can use this template. Note that it can't handle polymorphic copies. If T* actually points to an other type than T, the object is sliced. For correct behavior with polymorphism, use either DynamicCopy or VirtualClone.