Explorar el Código

SegList: Don't allow copying

Tatsuhiro Tsujikawa hace 14 años
padre
commit
22a3e44d36
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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