Skip to content

Commit 0d924c0

Browse files
authored
Define NodeConfiguration for BT3 compatibility (#477)
1 parent aa6ac31 commit 0d924c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/behaviortree_cpp/basic_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ using enable_if_not = typename std::enable_if<!Predicate::value>::type*;
203203
template <typename T>
204204
#ifdef USE_BTCPP3_OLD_NAMES
205205
using Optional = nonstd::expected<T, std::string>;
206+
// note: we use the name Optional instead of expected because it is more intuitive
207+
// for users that are not up to date with "modern" C++
206208
#else
207209
using Expected = nonstd::expected<T, std::string>;
208210
#endif
209-
// note: we use the name Optional instead of expected because it is more intuitive
210-
// for users that are not up to date with "modern" C++
211211

212212
/** Usage: given a function/method like:
213213
*

include/behaviortree_cpp/tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct NodeConfig
7979

8080
#ifdef USE_BTCPP3_OLD_NAMES
8181
// back compatibility
82-
using NodeConfig = NodeConfig;
82+
using NodeConfiguration = NodeConfig;
8383
#endif
8484

8585
template <typename T>

0 commit comments

Comments
 (0)