Kaynağa Gözat

SegList: Don't allow copying

Tatsuhiro Tsujikawa 14 yıl önce
ebeveyn
işleme
22a3e44d36
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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