diff --git a/ChangeLog b/ChangeLog index 109bb1eb..f89d0a2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-18 Tatsuhiro Tsujikawa + + Made DHTBucketTreeNode non-copyable. + * src/DHTBucketTree.h + 2010-11-18 Tatsuhiro Tsujikawa Enter 'end game' mode from the beginning when getting torrent diff --git a/src/DHTBucketTree.h b/src/DHTBucketTree.h index 48c47a8c..46d32b2c 100644 --- a/src/DHTBucketTree.h +++ b/src/DHTBucketTree.h @@ -75,6 +75,10 @@ public: // call. void split(); private: + // Do not allow copying + DHTBucketTreeNode(const DHTBucketTreeNode&); + DHTBucketTreeNode& operator=(const DHTBucketTreeNode&); + // Reset relation of children and minId_ and maxId_. void resetRelation(); void setParent(DHTBucketTreeNode* parent) { parent_ = parent; }