소스 검색

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