From c036482969f4d05777a3047590569da2c4f42930 Mon Sep 17 00:00:00 2001 From: Sebastian Ahlman Date: Thu, 19 Mar 2020 13:31:44 +0200 Subject: [PATCH] Tree is declared as a struct, so it needs to be forward-declared as a struct too. --- include/behaviortree_cpp_v3/tree_node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/behaviortree_cpp_v3/tree_node.h b/include/behaviortree_cpp_v3/tree_node.h index 7d94f6eb3..272a89742 100644 --- a/include/behaviortree_cpp_v3/tree_node.h +++ b/include/behaviortree_cpp_v3/tree_node.h @@ -153,7 +153,7 @@ class TreeNode friend class BehaviorTreeFactory; friend class DecoratorNode; friend class ControlNode; - friend class Tree; + friend struct Tree; // Only BehaviorTreeFactory should call this void setRegistrationID(StringView ID)