浏览代码

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);