Skip to content

Commit

Permalink
Fix missing boost::ref -> std::ref
Browse files Browse the repository at this point in the history
  • Loading branch information
henningkayser committed Mar 11, 2022
1 parent a589e54 commit 875276e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ bool PlanningRequestAdapterChain::adaptAndPlan(const planning_interface::Planner
// so that in the end we have a nested sequence of function pointers that call the adapters in the correct order.
PlanningRequestAdapter::PlannerFn fn =
std::bind(&callAdapter1, adapters_.back().get(), planner, std::placeholders::_1, std::placeholders::_2,
std::placeholders::_3, boost::ref(added_path_index_each.back()));
std::placeholders::_3, std::ref(added_path_index_each.back()));
for (int i = adapters_.size() - 2; i >= 0; --i)
fn = std::bind(&callAdapter2, adapters_[i].get(), fn, std::placeholders::_1, std::placeholders::_2,
std::placeholders::_3, boost::ref(added_path_index_each[i]));
std::placeholders::_3, std::ref(added_path_index_each[i]));
bool result = fn(planning_scene, req, res);
added_path_index.clear();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void MoveGroupSequenceAction::executeSequenceCallbackPlanAndExecute(
opt.replan_delay_ = goal->planning_options.replan_delay;
opt.before_execution_callback_ = std::bind(&MoveGroupSequenceAction::startMoveExecutionCallback, this);

opt.plan_callback_ = std::bind(&MoveGroupSequenceAction::planUsingSequenceManager, this, boost::cref(goal->request),
opt.plan_callback_ = std::bind(&MoveGroupSequenceAction::planUsingSequenceManager, this, std::cref(goal->request),
std::placeholders::_1);

if (goal->planning_options.look_around && context_->plan_with_sensing_)
Expand Down

0 comments on commit 875276e

Please sign in to comment.