Skip to content

Commit 7236489

Browse files
authored
Merge pull request #7 from PickNikRobotics/make-copy-into-const
Make BT::Any::copyInto const
2 parents c06e058 + 270f170 commit 7236489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/behaviortree_cpp/utils/safe_any.hpp

Lines changed: 2 additions & 2 deletions
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.
@@ -346,7 +346,7 @@ inline bool Any::isIntegral() const
346346
return _any.type() == typeid(int64_t) || _any.type() == typeid(uint64_t);
347347
}
348348

349-
inline void Any::copyInto(Any& dst)
349+
inline void Any::copyInto(Any& dst) const
350350
{
351351
if(dst.empty())
352352
{

0 commit comments

Comments
 (0)