OwnerPtrRef — Allows correct passing of OwnerPtr by value as a temporary object.
template<typename T1> struct OwnerPtrRef { // construct/copy/destruct OwnerPtrRef(T1 *); // public member functions T1 * p_; };
The following code allows correct passing of OwnerPtr by value as a temporary (const) object.
OwnerPtrRef
OwnerPtrRef(T1 * p);