Skip to content

Commit

Permalink
fix issue #713: getNodesByPath should be const
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Dec 6, 2023
1 parent ae95e68 commit 65504b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/behaviortree_cpp/bt_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Tree
/// move_nodes = tree.getNodesByPath<MoveBaseNode>("move_*");
///
template <typename NodeType = BT::TreeNode> [[nodiscard]]
std::vector<const TreeNode*> getNodesByPath(StringView wildcard_filter) {
std::vector<const TreeNode*> getNodesByPath(StringView wildcard_filter) const {
std::vector<const TreeNode*> nodes;
for (auto const& subtree : subtrees) {
for (auto const& node : subtree->nodes) {
Expand Down

0 comments on commit 65504b0

Please sign in to comment.