diff options
author | Alexander Arlt <alexander.arlt@arlt-labs.com> | 2018-05-02 19:29:16 +0800 |
---|---|---|
committer | Alexander Arlt <alexander.arlt@arlt-labs.com> | 2018-05-02 19:29:16 +0800 |
commit | f94b793472a8427e0507862cd5595cc92e70f53c (patch) | |
tree | b017d487890f286a05e5cfe97215f5e2a3985bb8 /libjulia/optimiser/ASTWalker.h | |
parent | 5cce2e552baf1f7431c99500da74cb929360c3b8 (diff) | |
download | dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.gz dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.bz2 dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.lz dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.xz dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.zst dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.zip |
Add virtual destructors on base classes.
Diffstat (limited to 'libjulia/optimiser/ASTWalker.h')
-rw-r--r-- | libjulia/optimiser/ASTWalker.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libjulia/optimiser/ASTWalker.h b/libjulia/optimiser/ASTWalker.h index 97891381..f09c2ff1 100644 --- a/libjulia/optimiser/ASTWalker.h +++ b/libjulia/optimiser/ASTWalker.h @@ -42,6 +42,7 @@ namespace julia class ASTWalker: public boost::static_visitor<> { public: + virtual ~ASTWalker() = default; virtual void operator()(Literal const&) {} virtual void operator()(Instruction const&) { solAssert(false, ""); } virtual void operator()(Identifier const&) {} @@ -82,6 +83,7 @@ protected: class ASTModifier: public boost::static_visitor<> { public: + virtual ~ASTModifier() = default; virtual void operator()(Literal&) {} virtual void operator()(Instruction&) { solAssert(false, ""); } virtual void operator()(Identifier&) {} |