浏览代码

SegList: Don't allow copying

Tatsuhiro Tsujikawa 14 年之前
父节点
当前提交
22a3e44d36
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/SegList.h

+ 3 - 0
src/SegList.h

@@ -131,6 +131,9 @@ private:
   std::vector<std::pair<T, T> > segs_;
   size_t index_;
   T val_;
+  // Don't allow copying
+  SegList(const SegList<T>&);
+  SegList& operator=(const SegList<T>&);
 };
 
 } // namespace aria2