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>
|
template<typename F>
|
||||||
void for_each(F && f) const {
|
void for_each(F && f) const {
|
||||||
buffer<Key> prefix;
|
if (m_ptr) {
|
||||||
for_each(f, *this, prefix);
|
buffer<Key> prefix;
|
||||||
|
for_each(f, *this, prefix);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for debugging purposes
|
// for debugging purposes
|
||||||
|
|
Loading…
Add table
Reference in a new issue