Skip to content

Commit 650e432

Browse files
committed
update boost::bind usage
use <boost/bind/bind.hpp> instead of deprecated <boost/bind.hpp> use boost::placeholders:: scope in appropriate files remove and add <boost/bind/bind.hpp> in appropriate files
1 parent 4b76601 commit 650e432

File tree

82 files changed

+279
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+279
-164
lines changed

gtsam/base/numericalDerivative.h

Lines changed: 55 additions & 34 deletions
Large diffs are not rendered by default.

gtsam/geometry/tests/testCalibratedCamera.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
#include <gtsam/base/Testable.h>
2121
#include <gtsam/base/numericalDerivative.h>
2222

23+
#include <boost/bind/bind.hpp>
2324
#include <CppUnitLite/TestHarness.h>
2425

2526
#include <iostream>
2627

28+
using namespace boost::placeholders;
2729
using namespace std;
2830
using namespace gtsam;
2931

gtsam/geometry/tests/testCameraSet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <gtsam/geometry/Pose3.h>
2121
#include <gtsam/base/numericalDerivative.h>
2222
#include <CppUnitLite/TestHarness.h>
23-
#include <boost/bind.hpp>
2423

2524
using namespace std;
2625
using namespace gtsam;

gtsam/geometry/tests/testEssentialMatrix.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
#include <gtsam/geometry/CalibratedCamera.h>
1010
#include <gtsam/base/numericalDerivative.h>
1111
#include <gtsam/base/Testable.h>
12+
13+
#include <boost/bind/bind.hpp>
1214
#include <CppUnitLite/TestHarness.h>
1315
#include <sstream>
1416

17+
using namespace boost::placeholders;
1518
using namespace std;
1619
using namespace gtsam;
1720

gtsam/geometry/tests/testOrientedPlane3.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
#include <gtsam/base/numericalDerivative.h>
2222
#include <CppUnitLite/TestHarness.h>
2323
#include <boost/assign/std/vector.hpp>
24+
#include <boost/bind/bind.hpp>
2425

2526
using namespace boost::assign;
27+
using namespace boost::placeholders;
2628
using namespace gtsam;
2729
using namespace std;
2830
using boost::none;

gtsam/geometry/tests/testPinholeCamera.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
#include <gtsam/base/Testable.h>
2323
#include <gtsam/base/numericalDerivative.h>
2424

25+
#include <boost/bind/bind.hpp>
2526
#include <CppUnitLite/TestHarness.h>
2627

2728
#include <cmath>
2829
#include <iostream>
2930

31+
using namespace boost::placeholders;
3032
using namespace std;
3133
using namespace gtsam;
3234

gtsam/geometry/tests/testPinholeSet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <gtsam/geometry/Pose3.h>
2121
#include <gtsam/base/numericalDerivative.h>
2222
#include <CppUnitLite/TestHarness.h>
23-
#include <boost/bind.hpp>
2423

2524
using namespace std;
2625
using namespace gtsam;

gtsam/geometry/tests/testPoint3.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
#include <gtsam/geometry/Point3.h>
1818
#include <gtsam/base/Testable.h>
1919
#include <gtsam/base/numericalDerivative.h>
20+
21+
#include <boost/bind/bind.hpp>
2022
#include <CppUnitLite/TestHarness.h>
2123

24+
using namespace boost::placeholders;
2225
using namespace gtsam;
2326

2427
GTSAM_CONCEPT_TESTABLE_INST(Point3)

gtsam/geometry/tests/testPose3.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
#include <boost/assign/std/vector.hpp> // for operator +=
2424
using namespace boost::assign;
25+
#include <boost/bind/bind.hpp>
26+
using namespace boost::placeholders;
2527

2628
#include <CppUnitLite/TestHarness.h>
2729
#include <cmath>

gtsam/geometry/tests/testSO3.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
#include <gtsam/base/Testable.h>
2121
#include <gtsam/base/testLie.h>
2222

23+
#include <boost/bind/bind.hpp>
2324
#include <CppUnitLite/TestHarness.h>
2425

26+
using namespace boost::placeholders;
2527
using namespace std;
2628
using namespace gtsam;
2729

0 commit comments

Comments
 (0)