fix(util/trie): bug in for_each method
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
af0c93e0eb
commit
25640faaeb
1 changed files with 4 additions and 2 deletions
|
@ -139,8 +139,10 @@ public:
|
|||
|
||||
template<typename F>
|
||||
void for_each(F && f) const {
|
||||
buffer<Key> prefix;
|
||||
for_each(f, *this, prefix);
|
||||
if (m_ptr) {
|
||||
buffer<Key> prefix;
|
||||
for_each(f, *this, prefix);
|
||||
}
|
||||
}
|
||||
|
||||
// for debugging purposes
|
||||
|
|
Loading…
Reference in a new issue