Skip to content

Commit

Permalink
use boost::placeholders::_1/_2 in remaining instances, include boost/…
Browse files Browse the repository at this point in the history
…bind/bind.hpp instead of boost/bind.hpp, eliminated unnecessary bind.hpp include
  • Loading branch information
lucasw authored and bmagyar committed May 19, 2022
1 parent c255fca commit 5e4075b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ackermann_steering_controller/src/odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <ackermann_steering_controller/odometry.h>

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>

namespace ackermann_steering_controller
{
Expand All @@ -61,7 +61,7 @@ namespace ackermann_steering_controller
, velocity_rolling_window_size_(velocity_rolling_window_size)
, linear_acc_(RollingWindow::window_size = velocity_rolling_window_size)
, angular_acc_(RollingWindow::window_size = velocity_rolling_window_size)
, integrate_fun_(boost::bind(&Odometry::integrateExact, this, _1, _2))
, integrate_fun_(boost::bind(&Odometry::integrateExact, this, boost::placeholders::_1, boost::placeholders::_2))
{
}

Expand Down
4 changes: 2 additions & 2 deletions diff_drive_controller/src/odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#include <diff_drive_controller/odometry.h>

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>

namespace diff_drive_controller
{
Expand All @@ -62,7 +62,7 @@ namespace diff_drive_controller
, velocity_rolling_window_size_(velocity_rolling_window_size)
, linear_acc_(RollingWindow::window_size = velocity_rolling_window_size)
, angular_acc_(RollingWindow::window_size = velocity_rolling_window_size)
, integrate_fun_(boost::bind(&Odometry::integrateExact, this, _1, _2))
, integrate_fun_(boost::bind(&Odometry::integrateExact, this, boost::placeholders::_1, boost::placeholders::_2))
{
}

Expand Down
2 changes: 0 additions & 2 deletions four_wheel_steering_controller/src/odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@

#include <four_wheel_steering_controller/odometry.h>

#include <boost/bind.hpp>

namespace four_wheel_steering_controller
{
namespace bacc = boost::accumulators;
Expand Down

0 comments on commit 5e4075b

Please sign in to comment.