make destructor virtual

This commit is contained in:
Patrick Brosi 2018-07-13 18:04:27 +02:00
parent 3e362457fc
commit 4674f0f116

View file

@ -19,7 +19,7 @@ namespace graph {
template <typename N, typename E>
class Graph {
public:
~Graph();
virtual ~Graph();
virtual Node<N, E>* addNd() = 0;
virtual Node<N, E>* addNd(const N& pl) = 0;
Edge<N, E>* addEdg(Node<N, E>* from, Node<N, E>* to);