Explorar el Código

Forbid copying ReferenceImpl using a assign operator

Ole hace 9 años
padre
commit
c639825c50
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      lib/luwra/types.hpp

+ 2 - 0
lib/luwra/types.hpp

@@ -277,6 +277,8 @@ namespace internal {
 		// Lua reference.
 		ReferenceImpl(const ReferenceImpl& other) = delete;
 		ReferenceImpl(ReferenceImpl&& other) = delete;
+		ReferenceImpl& operator =(const ReferenceImpl&) = delete;
+		ReferenceImpl& operator =(ReferenceImpl&&) = delete;
 
 		inline
 		~ReferenceImpl() {