Skip to content

Commit e5151f3

Browse files
committed
fix compilation
1 parent f7a1b35 commit e5151f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/behaviortree_cpp_v3/utils/safe_any.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Any
9292
template <typename T>
9393
explicit Any(const T& value, EnableNonIntegral<T> = 0) : _any(value), _original_type( &typeid(T) )
9494
{
95-
static_assert(!std::is_reference_v<T>, "Any can not contain references");
95+
static_assert(!std::is_reference<T>::value, "Any can not contain references");
9696
}
9797

9898
Any& operator = (const Any& other)
@@ -119,7 +119,7 @@ class Any
119119
template <typename T>
120120
T cast() const
121121
{
122-
static_assert(!std::is_reference_v<T>, "Any::cast uses value semantic, can not cast to reference");
122+
static_assert(!std::is_reference<T>::value, "Any::cast uses value semantic, can not cast to reference");
123123

124124
if( _any.empty() )
125125
{

0 commit comments

Comments
 (0)