Changes in src/Common/utility.h [1b65595:298fe57]
- File:
-
- 1 edited
-
src/Common/utility.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
r1b65595 r298fe57 322 322 323 323 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; }326 324 ~ValueGuardPtr() { if( ref ) *ref = old; } 327 325 };
Note:
See TracChangeset
for help on using the changeset viewer.