mirror of https://github.com/aria2/aria2
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Defined a copy constructor for the same type. * src/SharedHandle.hpull/1/head
parent
2881dbe025
commit
0185a9d5a5
|
@ -1,3 +1,8 @@
|
|||
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Defined a copy constructor for the same type.
|
||||
* src/SharedHandle.h
|
||||
|
||||
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Added OptionParser::parseArg() which internally uses getopt_long
|
||||
|
|
|
@ -202,6 +202,8 @@ public:
|
|||
|
||||
explicit SharedHandle(T* obj):obj(obj), ucount() {}
|
||||
|
||||
SharedHandle(const SharedHandle& t):obj(t.obj), ucount(t.ucount) {}
|
||||
|
||||
template<typename S>
|
||||
SharedHandle(const SharedHandle<S>& t):obj(t.obj), ucount(t.ucount) {}
|
||||
|
||||
|
@ -316,6 +318,8 @@ public:
|
|||
|
||||
explicit WeakHandle(T* obj):obj(obj), ucount(StrongRef()) {}
|
||||
|
||||
WeakHandle(const WeakHandle& t):obj(t.obj), ucount(t.ucount) {}
|
||||
|
||||
template<typename S>
|
||||
WeakHandle(const SharedHandle<S>& t):obj(t.obj), ucount(t.ucount) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue