subcircuit: Class with virtual methods should have virtual destructor.

Fixes a compile warning.

* https://stackoverflow.com/questions/1123044/when-should-your-destructor-be-virtual
This commit is contained in:
Tim 'mithro' Ansell 2017-11-24 15:26:56 +11:00
parent 203c2dae3c
commit 04802e93e8
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ namespace SubCircuit
public:
Solver();
~Solver();
virtual ~Solver();
void setVerbose();
void addGraph(std::string graphId, const Graph &graph);