From: John Spray Date: Wed, 10 Sep 2014 12:21:42 +0000 (+0100) Subject: xlist: implement copy constructor X-Git-Tag: v0.86~68^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a6a0fd814b376a8938d73b25c2f24e23fd719611;p=ceph.git xlist: implement copy constructor ...so that I can have a std::map of them. Signed-off-by: John Spray --- diff --git a/src/include/xlist.h b/src/include/xlist.h index 26a6b9d5746c..53aa3ab06fc5 100644 --- a/src/include/xlist.h +++ b/src/include/xlist.h @@ -61,8 +61,11 @@ private: int _size; public: - xlist(const xlist& other); - const xlist& operator=(const xlist& other); + xlist(const xlist& other) { + _front = other._front; + _back = other._back; + _size = other._size; + } xlist() : _front(0), _back(0), _size(0) {} ~xlist() {