Commit 6c1e697e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix boost bind placeholders

for for boost 1.78 eg.:

crocoddyl/unittest/test_contacts.cpp:170:114: error: '_2' was not declared in this scope
  170 |   reevals.push_back(boost::bind(&crocoddyl::unittest::updateAllPinocchio, &pinocchio_model, &pinocchio_data, _1, _2));
      |                                                                                                                  ^~
parent 9c500d65
Pipeline #17588 passed with stage
in 30 minutes and 13 seconds
......@@ -146,6 +146,9 @@ void test_update_force_diff(ContactModelTypes::Type contact_type, PinocchioModel
void test_partial_derivatives_against_numdiff(ContactModelTypes::Type contact_type,
PinocchioModelTypes::Type model_type) {
#if BOOST_VERSION / 100 % 1000 >= 60
using namespace boost::placeholders;
#endif
// create the model
ContactModelFactory factory;
boost::shared_ptr<crocoddyl::ContactModelAbstract> model = factory.create(contact_type, model_type);
......
......@@ -92,6 +92,9 @@ void test_calc_against_numdiff(CostModelTypes::Type cost_type, StateModelTypes::
void test_partial_derivatives_against_numdiff(CostModelTypes::Type cost_type, StateModelTypes::Type state_type,
ActivationModelTypes::Type activation_type) {
#if BOOST_VERSION / 100 % 1000 >= 60
using namespace boost::placeholders;
#endif
// create the model
CostModelFactory factory;
const boost::shared_ptr<crocoddyl::CostModelAbstract>& model =
......
......@@ -98,6 +98,9 @@ void test_calc_against_numdiff(CostModelNoFFTypes::Type cost_type, ActivationMod
void test_partial_derivatives_against_numdiff(CostModelNoFFTypes::Type cost_type,
ActivationModelTypes::Type activation_type) {
#if BOOST_VERSION / 100 % 1000 >= 60
using namespace boost::placeholders;
#endif
// create the model
CostModelFactory factory;
const boost::shared_ptr<crocoddyl::CostModelAbstract>& model = factory.create(cost_type, activation_type);
......
......@@ -63,6 +63,9 @@ void test_calc_returns_a_residual(ResidualModelTypes::Type residual_type, StateM
void test_calc_against_numdiff(ResidualModelTypes::Type residual_type, StateModelTypes::Type state_type,
ActuationModelTypes::Type actuation_type) {
#if BOOST_VERSION / 100 % 1000 >= 60
using namespace boost::placeholders;
#endif
// Create the model
ResidualModelFactory residual_factory;
ActuationModelFactory actuation_factory;
......@@ -108,6 +111,9 @@ void test_calc_against_numdiff(ResidualModelTypes::Type residual_type, StateMode
void test_partial_derivatives_against_numdiff(ResidualModelTypes::Type residual_type, StateModelTypes::Type state_type,
ActuationModelTypes::Type actuation_type) {
#if BOOST_VERSION / 100 % 1000 >= 60
using namespace boost::placeholders;
#endif
// Create the model
ResidualModelFactory residual_factory;
ActuationModelFactory actuation_factory;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment