fix set to not use virtual as this causes problems

This commit is contained in:
2020-12-31 18:13:16 +01:00
parent c4e62b1360
commit 8fd238342f

View File

@@ -7,13 +7,13 @@ class Set {
Set(); Set();
Node* first; Node* first;
public: public:
virtual bool add(int element); bool add(int element) { return false; };
virtual bool rmv(int element); bool rmv(int element) { return false; };
virtual bool ctn(int element); bool ctn(int element) { return false; };
}; };
Set::Set(){ Set::Set(){
first = Node::Dummy(); // dummy node; first = Node::Dummy();
Node* last = Node::Dummy(); Node* last = Node::Dummy();
first->next = last; first->next = last;
} }