Commit 97361262 authored by Quentin Khan's avatar Quentin Khan

Revert "Fix FTree::forEachLeaf member function"

This reverts commit f3bf686a.

The bug was not a bug...
parent 6d117f4f
......@@ -306,7 +306,14 @@ public:
template<typename F>
void forEachLeaf(F&& func) {
for(auto& leaf : this->leaves()) {
func(leaf->getData());
func(leaf);
}
}
template<typename F>
void forEachLeaf(F&& func) const {
for(auto& leaf : this->leaves()) {
func(leaf);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment