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:
John Spray 2014-09-10 13:21:42 +01:00
parent fd04d5e662
commit a6a0fd814b

View File

@ -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() {