Skip to content

Make BT::Any::copyInto const #970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/behaviortree_cpp/utils/safe_any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Any
}

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

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

inline void Any::copyInto(Any& dst)
inline void Any::copyInto(Any& dst) const
{
if(dst.empty())
{
Expand Down
Loading