File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
include/behaviortree_cpp/flatbuffers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,15 @@ inline void CreateFlatbuffersBehaviorTree(flatbuffers::FlatBufferBuilder& builde
80
80
children_uid.push_back (child->UID ());
81
81
}
82
82
83
+ // Const cast to ensure public access to config() overload
84
+ const auto & node_config = const_cast <BT::TreeNode const &>(*node).config ();
83
85
std::vector<flatbuffers::Offset<Serialization::PortConfig>> ports;
84
- for (const auto & it : node-> config () .input_ports )
86
+ for (const auto & it : node_config .input_ports )
85
87
{
86
88
ports.push_back (Serialization::CreatePortConfigDirect (builder, it.first .c_str (),
87
89
it.second .c_str ()));
88
90
}
89
- for (const auto & it : node-> config () .output_ports )
91
+ for (const auto & it : node_config .output_ports )
90
92
{
91
93
ports.push_back (Serialization::CreatePortConfigDirect (builder, it.first .c_str (),
92
94
it.second .c_str ()));
You can’t perform that action at this time.
0 commit comments