File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
include/behaviortree_cpp_v3 Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CONFIG_PATH}")
77
88#---- Enable C++11 ----
99if (NOT CMAKE_VERSION VERSION_LESS 3.1)
10- set (CMAKE_CXX_STANDARD 11 )
10+ set (CMAKE_CXX_STANDARD 14 )
1111 set (CMAKE_CXX_STANDARD_REQUIRED ON )
1212else ()
13- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 " )
13+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 " )
1414endif ()
1515
1616if (MSVC )
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ class ControlNode : public TreeNode
4343
4444 virtual void halt () override ;
4545
46-
4746 void haltChildren ();
4847
48+ [[deprecated( " deprecated: please use explicitly haltChildren() or haltChild(i)" )]]
49+ void haltChildren (size_t first);
50+
4951 void haltChild (size_t i);
5052
5153 virtual NodeType type () const override final
Original file line number Diff line number Diff line change @@ -59,4 +59,12 @@ void ControlNode::haltChildren()
5959 }
6060}
6161
62+ void ControlNode::haltChildren (size_t first)
63+ {
64+ for (size_t i = first; i < children_nodes_.size (); i++)
65+ {
66+ haltChild (i);
67+ }
68+ }
69+
6270} // end namespace
You can’t perform that action at this time.
0 commit comments