Skip to content

Commit

Permalink
replace obsolete use of boost _1
Browse files Browse the repository at this point in the history
  • Loading branch information
v4hn committed Aug 6, 2024
1 parent 2650463 commit 2a1b3c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions interactive_marker_tutorials/src/pong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ class PongGame
int_marker.name = "paddle0";
int_marker.pose.position.x = -PLAYER_X;
server_.insert( int_marker );
server_.setCallback( int_marker.name, boost::bind( &PongGame::processPaddleFeedback, this, 0, _1 ) );
server_.setCallback( int_marker.name, [this](auto feedback){ processPaddleFeedback(0, feedback); } );

// Control for player 2
int_marker.name = "paddle1";
int_marker.pose.position.x = PLAYER_X;
server_.insert( int_marker );
server_.setCallback( int_marker.name, boost::bind( &PongGame::processPaddleFeedback, this, 1, _1 ) );
server_.setCallback( int_marker.name, [this](auto feedback){ processPaddleFeedback(1, feedback); } );

// Make display markers
marker.scale.x = BORDER_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion interactive_marker_tutorials/src/selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class PointCouldSelector
interactive_markers::makeArrow( int_marker, control, 0.5 * sign );

int_marker.controls.push_back( control );
server_->insert( int_marker, boost::bind( &PointCouldSelector::processAxisFeedback, this, _1 ) );
server_->insert( int_marker, [this](auto feedback){ processAxisFeedback(feedback); } );
}
}
}
Expand Down

0 comments on commit 2a1b3c1

Please sign in to comment.