Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/behaviortree_cpp/bt_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Tree
[[nodiscard]] Blackboard::Ptr rootBlackboard();

//Call the visitor for each node of the tree.
void applyVisitor(const std::function<void(const TreeNode*)>& visitor);
void applyVisitor(const std::function<void(const TreeNode*)>& visitor) const;

//Call the visitor for each node of the tree.
void applyVisitor(const std::function<void(TreeNode*)>& visitor);
Expand Down
2 changes: 1 addition & 1 deletion src/bt_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ Blackboard::Ptr Tree::rootBlackboard()
return {};
}

void Tree::applyVisitor(const std::function<void(const TreeNode*)>& visitor)
void Tree::applyVisitor(const std::function<void(const TreeNode*)>& visitor) const
{
BT::applyRecursiveVisitor(static_cast<const TreeNode*>(rootNode()), visitor);
}
Expand Down
Loading