projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
203c2da
)
subcircuit: Class with virtual methods should have virtual destructor.
author
Tim 'mithro' Ansell
<mithro@mithis.com>
Fri, 24 Nov 2017 04:26:56 +0000
(15:26 +1100)
committer
Tim 'mithro' Ansell
<mithro@mithis.com>
Sun, 26 Nov 2017 03:48:26 +0000
(19:48 -0800)
Fixes a compile warning.
* https://stackoverflow.com/questions/
1123044
/when-should-your-destructor-be-virtual
libs/subcircuit/subcircuit.h
patch
|
blob
|
history
diff --git
a/libs/subcircuit/subcircuit.h
b/libs/subcircuit/subcircuit.h
index 5291c6421ef29e84f2dc5edf41567bd7c4ebf972..8368efab138aca5c7f7ff154b30ead4d0534d716 100644
(file)
--- a/
libs/subcircuit/subcircuit.h
+++ b/
libs/subcircuit/subcircuit.h
@@
-131,7
+131,7
@@
namespace SubCircuit
public:
Solver();
- ~Solver();
+
virtual
~Solver();
void setVerbose();
void addGraph(std::string graphId, const Graph &graph);