Explorar o código

SegList: Don't allow copying

Tatsuhiro Tsujikawa %!s(int64=14) %!d(string=hai) anos
pai
achega
22a3e44d36
Modificáronse 1 ficheiros con 3 adicións e 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