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}")
7
7
8
8
#---- Enable C++11 ----
9
9
if (NOT CMAKE_VERSION VERSION_LESS 3.1 )
10
- set (CMAKE_CXX_STANDARD 11 )
10
+ set (CMAKE_CXX_STANDARD 14 )
11
11
set (CMAKE_CXX_STANDARD_REQUIRED ON )
12
12
else ()
13
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 " )
13
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 " )
14
14
endif ()
15
15
16
16
if (MSVC )
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ class ControlNode : public TreeNode
43
43
44
44
virtual void halt () override ;
45
45
46
-
47
46
void haltChildren ();
48
47
48
+ [[deprecated( " deprecated: please use explicitly haltChildren() or haltChild(i)" )]]
49
+ void haltChildren (size_t first);
50
+
49
51
void haltChild (size_t i);
50
52
51
53
virtual NodeType type () const override final
Original file line number Diff line number Diff line change @@ -59,4 +59,12 @@ void ControlNode::haltChildren()
59
59
}
60
60
}
61
61
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
+
62
70
} // end namespace
You can’t perform that action at this time.
0 commit comments