Added missing virtual keywords to destructors
This commit is contained in:
Alessandro Ferro
2021-05-25 23:06:28 +02:00
parent b3ca7292c1
commit 31f7ae9b35
26 changed files with 27 additions and 25 deletions

View File

@ -15,10 +15,11 @@ protected:
protected:
using BinaryTree<Data>::Node::data;
public:
struct NodeLnk* left = nullptr;
struct NodeLnk* right = nullptr;
public:
struct NodeLnk& operator=(const NodeLnk&); // Copy assignment of abstract types should not be possible.
struct NodeLnk& operator=(NodeLnk&&) noexcept; // Move assignment of abstract types should not be possible.
bool IsLeaf() const noexcept override; // (concrete function should not throw exceptions)