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
92
92
template <typename T>
93
93
explicit Any (const T& value, EnableNonIntegral<T> = 0 ) : _any(value), _original_type( &typeid (T) )
94
94
{
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" );
96
96
}
97
97
98
98
Any& operator = (const Any& other)
@@ -119,7 +119,7 @@ class Any
119
119
template <typename T>
120
120
T cast () const
121
121
{
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" );
123
123
124
124
if ( _any.empty () )
125
125
{
You can’t perform that action at this time.
0 commit comments