Ver código fonte

Forbid copying ReferenceImpl using a assign operator

Ole 9 anos atrás
pai
commit
c639825c50
1 arquivos alterados com 2 adições e 0 exclusões
  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() {