Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/utility.h

    r1b65595 r298fe57  
    322322
    323323        ValueGuardPtr(T * inRef) : old( inRef ? *inRef : T() ), ref(inRef) {}
    324         ValueGuardPtr(const ValueGuardPtr& other) = delete;
    325         ValueGuardPtr(ValueGuardPtr&& other) : old(other.old), ref(other.ref) { other.ref = nullptr; }
    326324        ~ValueGuardPtr() { if( ref ) *ref = old; }
    327325};
Note: See TracChangeset for help on using the changeset viewer.