Skip to content

Commit af880a4

Browse files
author
Daniel Kroening
authored
Merge pull request #2382 from tautschnig/missing-dest
Add missing virtual destructor
2 parents e149397 + 7e7619c commit af880a4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/util/symbol_table_base.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
#include <ostream>
66
#include <algorithm>
77

8+
/// Destructor
9+
symbol_table_baset::~symbol_table_baset()
10+
{
11+
}
12+
13+
814
/// Add a new symbol to the symbol table
915
/// \param symbol: The symbol to be added to the symbol table
1016
/// \return Returns true if the process failed, which should only happen if

src/util/symbol_table_base.h

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class symbol_table_baset
4242
symbol_table_baset(const symbol_table_baset &other) = delete;
4343
symbol_table_baset &operator=(const symbol_table_baset &other) = delete;
4444

45+
virtual ~symbol_table_baset();
46+
4547
public:
4648
/// Permits implicit cast to const symbol_tablet &
4749
operator const symbol_tablet &() const

0 commit comments

Comments
 (0)