Index: src/Common/utility.h
===================================================================
--- src/Common/utility.h	(revision df00c78b128651274f61f1ce49367f7120e119e0)
+++ 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; }
 };
