Index: src/Common/utility.h
===================================================================
--- src/Common/utility.h	(revision 3acc863213f08d015401fe973cfa1d4eb8a0f4d3)
+++ src/Common/utility.h	(revision 1b6559591982ed2ebef59f16634f41c9ea8ac8dd)
@@ -322,4 +322,6 @@
 
 	ValueGuardPtr(T * inRef) : old( inRef ? *inRef : T() ), ref(inRef) {}
+	ValueGuardPtr(const ValueGuardPtr& other) = delete;
+	ValueGuardPtr(ValueGuardPtr&& other) : old(other.old), ref(other.ref) { other.ref = nullptr; }
 	~ValueGuardPtr() { if( ref ) *ref = old; }
 };
