Browse Source

Fixed CheshireCat::operator=()

Paul-Louis Ageneau 4 years ago
parent
commit
4dcd96d9d3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      include/rtc/utils.hpp

+ 4 - 1
include/rtc/utils.hpp

@@ -117,7 +117,10 @@ public:
 
 
 	virtual ~CheshireCat() = default;
 	virtual ~CheshireCat() = default;
 
 
-	CheshireCat &operator=(CheshireCat<T> &&cc) { mImpl = std::move(cc->mImpl); };
+	CheshireCat &operator=(CheshireCat<T> &&cc) {
+		mImpl = std::move(cc.mImpl);
+		return *this;
+	};
 	CheshireCat &operator=(const CheshireCat<T> &) = delete;
 	CheshireCat &operator=(const CheshireCat<T> &) = delete;
 
 
 protected:
 protected: