make destructor virtual
This commit is contained in:
parent
3e362457fc
commit
4674f0f116
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ namespace graph {
|
||||||
template <typename N, typename E>
|
template <typename N, typename E>
|
||||||
class Graph {
|
class Graph {
|
||||||
public:
|
public:
|
||||||
~Graph();
|
virtual ~Graph();
|
||||||
virtual Node<N, E>* addNd() = 0;
|
virtual Node<N, E>* addNd() = 0;
|
||||||
virtual Node<N, E>* addNd(const N& pl) = 0;
|
virtual Node<N, E>* addNd(const N& pl) = 0;
|
||||||
Edge<N, E>* addEdg(Node<N, E>* from, Node<N, E>* to);
|
Edge<N, E>* addEdg(Node<N, E>* from, Node<N, E>* to);
|
||||||
|
|
Loading…
Reference in a new issue