File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/behaviortree_cpp_v3/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments