mirror of
https://github.com/xfarrow/lasd.git
synced 2025-02-16 12:10:37 +01:00
Library 3
zero errors in simpletest
This commit is contained in:
parent
4add56d732
commit
2b6dcf6700
@ -155,10 +155,10 @@ template <typename Data>
|
|||||||
void BinaryTree<Data>::FoldPostOrder(const typename FoldableContainer<Data>::FoldFunctor function, const void* par, void* acc, const Node* node) const{
|
void BinaryTree<Data>::FoldPostOrder(const typename FoldableContainer<Data>::FoldFunctor function, const void* par, void* acc, const Node* node) const{
|
||||||
if(node != nullptr){
|
if(node != nullptr){
|
||||||
if(node->HasLeftChild()){
|
if(node->HasLeftChild()){
|
||||||
FoldPreOrder(function, par, acc, &(node->LeftChild()));
|
FoldPostOrder(function, par, acc, &(node->LeftChild()));
|
||||||
}
|
}
|
||||||
if(node->HasRightChild()){
|
if(node->HasRightChild()){
|
||||||
FoldPreOrder(function, par, acc, &(node->RightChild()));
|
FoldPostOrder(function, par, acc, &(node->RightChild()));
|
||||||
}
|
}
|
||||||
function(node->Element(), par, acc);
|
function(node->Element(), par, acc);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user