fix(util/trie): bug in for_each method

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-09 16:43:01 -07:00
parent af0c93e0eb
commit 25640faaeb

View file

@ -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