Skip to content

Commit acc46d6

Browse files
author
Thomas Kiley
committed
Don't hide the const iterators from the base class
The const iterators can use the base class directly.
1 parent a9afb9a commit acc46d6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/util/symbol_table.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,8 @@ class symbol_tablet : public symbol_table_baset
122122

123123
typedef symbolst::const_iterator const_iteratort;
124124

125-
virtual const_iteratort begin() const
126-
{
127-
return internal_symbols.begin();
128-
}
129-
130-
virtual const_iteratort end() const
131-
{
132-
return internal_symbols.end();
133-
}
125+
using symbol_table_baset::begin;
126+
using symbol_table_baset::end;
134127

135128
/// Check that the symbol table is well-formed
136129
void validate(const validation_modet vm = validation_modet::INVARIANT) const;

0 commit comments

Comments
 (0)