diff --git a/librerie/exercise3/binarytree/binarytree.cpp b/librerie/exercise3/binarytree/binarytree.cpp index a5fdf86..acecce8 100755 --- a/librerie/exercise3/binarytree/binarytree.cpp +++ b/librerie/exercise3/binarytree/binarytree.cpp @@ -155,10 +155,10 @@ template void BinaryTree::FoldPostOrder(const typename FoldableContainer::FoldFunctor function, const void* par, void* acc, const Node* node) const{ if(node != nullptr){ if(node->HasLeftChild()){ - FoldPreOrder(function, par, acc, &(node->LeftChild())); + FoldPostOrder(function, par, acc, &(node->LeftChild())); } if(node->HasRightChild()){ - FoldPreOrder(function, par, acc, &(node->RightChild())); + FoldPostOrder(function, par, acc, &(node->RightChild())); } function(node->Element(), par, acc); }