소스 검색

Fix compiler error in move constructor

Sam Jaffe 7 년 전
부모
커밋
9901684bc3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      trie.hpp

+ 1 - 1
trie.hpp

@@ -58,7 +58,7 @@ private:
 public:
   trie() {}
   trie(trie const & other);
-  trie(trie && other) { swap(other); }
+  trie(trie && other) : trie() { swap(*this, other); }
   ~trie() { clear(); }
   self_t & operator=(mapped_type const & value);
   self_t & operator=(trie const & value);