mirror of
https://github.com/ceph/ceph
synced 2025-03-20 01:07:42 +00:00
xlist: implement copy constructor
...so that I can have a std::map of them. Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
fd04d5e662
commit
a6a0fd814b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user