diff --git a/src/radix.h b/src/radix.h --- a/src/radix.h +++ b/src/radix.h @@ -252,7 +252,9 @@ void forEachLeaf(RadixElement e, Callable &&func) const { if (e.isNode()) { e.getNode()->forEachChild( - [&](auto pElement) { forEachLeaf(pElement->load(), func); }); + [&](const std::atomic *pElement) { + forEachLeaf(pElement->load(), func); + }); return; }