subcircuit: Class with virtual methods should have virtual destructor.
authorTim 'mithro' Ansell <mithro@mithis.com>
Fri, 24 Nov 2017 04:26:56 +0000 (15:26 +1100)
committerTim '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

index 5291c6421ef29e84f2dc5edf41567bd7c4ebf972..8368efab138aca5c7f7ff154b30ead4d0534d716 100644 (file)
@@ -131,7 +131,7 @@ namespace SubCircuit
 
        public:
                Solver();
-               ~Solver();
+               virtual ~Solver();
 
                void setVerbose();
                void addGraph(std::string graphId, const Graph &graph);