Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb65991

Browse files
committed
Merge branch 'master' of github.com:BehaviorTree/BehaviorTree.CPP
2 parents f97f87f + 963c169 commit cb65991

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

include/behaviortree_cpp_v3/tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class TreeNode
153153
friend class BehaviorTreeFactory;
154154
friend class DecoratorNode;
155155
friend class ControlNode;
156-
friend class Tree;
156+
friend struct Tree;
157157

158158
// Only BehaviorTreeFactory should call this
159159
void setRegistrationID(StringView ID)

include/behaviortree_cpp_v3/utils/make_unique.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <memory>
44

5-
#if defined(_MSC_VER) && __cplusplus == 201103L
5+
#if defined(_MSC_VER) && _MSC_VER >= 1900 // MSVC 2015 or newer.
66
# define MAKE_UNIQUE_DEFINED 1
77
#endif
88

include/behaviortree_cpp_v3/utils/string_view.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,14 @@ nssv_constexpr bool operator== (
891891
basic_string_view <CharT, Traits> rhs ) nssv_noexcept
892892
{ return lhs.compare( rhs ) == 0 ; }
893893

894+
template< class CharT, class Traits >
895+
nssv_constexpr bool operator== (
896+
basic_string_view <CharT, Traits> lhs,
897+
CharT const * rhs) nssv_noexcept
898+
{
899+
return lhs.compare(rhs) == 0;
900+
}
901+
894902
template< class CharT, class Traits >
895903
nssv_constexpr bool operator!= (
896904
basic_string_view <CharT, Traits> lhs,

0 commit comments

Comments
 (0)