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

Skip to content

Commit 5a158ef

Browse files
authored
Make BT::Any::copyInto const (#970)
1 parent 9b29c99 commit 5a158ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/behaviortree_cpp/utils/safe_any.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Any
134134
}
135135

136136
// copy the value (casting into dst). We preserve the destination type.
137-
void copyInto(Any& dst);
137+
void copyInto(Any& dst) const;
138138

139139
// this is different from any_cast, because if allows safe
140140
// conversions between arithmetic values and from/to string.
@@ -321,7 +321,7 @@ inline bool Any::isIntegral() const
321321
return _any.type() == typeid(int64_t) || _any.type() == typeid(uint64_t);
322322
}
323323

324-
inline void Any::copyInto(Any& dst)
324+
inline void Any::copyInto(Any& dst) const
325325
{
326326
if(dst.empty())
327327
{

0 commit comments

Comments
 (0)