3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

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

View file

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