ソースを参照

Forbid copying ReferenceImpl using a assign operator

Ole 9 年 前
コミット
c639825c50
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  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() {