Skip to content

Commit 503d7d6

Browse files
authored
Merge pull request #226 from nim65s/topic/warnings
Fix warnings
2 parents 3195581 + 080f909 commit 503d7d6

23 files changed

+33
-48
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@ ELSE()
192192
TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj>)
193193
ENDIF()
194194

195-
IF(Boost_VERSION GREATER 107299)
196-
# Silence a warning about a deprecated use of boost bind by boost python
197-
# at least fo boost 1.73 to 1.75
198-
ADD_DEFINITIONS(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
199-
ENDIF()
200-
201195
TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME} PUBLIC)
202196
INSTALL(TARGETS ${PROJECT_NAME}
203197
EXPORT ${TARGETS_EXPORT_NAME}

include/eigenpy/computation-info.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
#ifndef __eigenpy_decompositions_computation_info_hpp__
66
#define __eigenpy_decompositions_computation_info_hpp__
77

8-
#include <Eigen/Core>
9-
#include <boost/python.hpp>
10-
11-
#include "eigenpy/config.hpp"
8+
#include "eigenpy/fwd.hpp"
129

1310
namespace eigenpy
1411
{

include/eigenpy/eigenpy.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "eigenpy/fwd.hpp"
1010
#include "eigenpy/deprecated.hpp"
11-
#include "eigenpy/config.hpp"
1211
#include "eigenpy/eigen-typedef.hpp"
1312

1413
#define ENABLE_SPECIFIC_MATRIX_TYPE(TYPE) \

include/eigenpy/exception.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
* Copyright 2018-2019, INRIA
44
*/
55

6-
#include <boost/python.hpp>
6+
#ifndef __eigenpy_exception_hpp__
7+
#define __eigenpy_exception_hpp__
8+
79
#include <exception>
810
#include <string>
911

10-
#ifndef __eigenpy_exception_hpp__
11-
#define __eigenpy_exception_hpp__
12+
#include "eigenpy/fwd.hpp"
1213

1314
namespace eigenpy
1415
{

include/eigenpy/fwd.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@
77

88
#include "eigenpy/config.hpp"
99

10+
// Silence a warning about a deprecated use of boost bind by boost python
11+
// at least fo boost 1.73 to 1.75
12+
// ref. https://github.com/stack-of-tasks/tsid/issues/128
13+
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
1014
#include <boost/python.hpp>
11-
#include <Eigen/Core>
15+
#include <boost/python/scope.hpp>
1216

1317
#define NO_IMPORT_ARRAY
1418
#include "eigenpy/numpy.hpp"
1519
#undef NO_IMPORT_ARRAY
1620

21+
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
22+
23+
#include <Eigen/Core>
24+
1725
#if EIGEN_VERSION_AT_LEAST(3,2,90)
1826
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned16
1927
#else

include/eigenpy/geometry-conversion.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
#ifndef __eigenpy_geometry_conversion_hpp__
77
#define __eigenpy_geometry_conversion_hpp__
88

9-
#include <Eigen/Core>
9+
#include "eigenpy/fwd.hpp"
1010
#include <Eigen/Geometry>
11-
#include <boost/python.hpp>
1211

1312
namespace eigenpy
1413
{

include/eigenpy/memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef __eigenpy_memory_hpp__
77
#define __eigenpy_memory_hpp__
88

9-
#include <boost/python.hpp>
9+
#include "eigenpy/fwd.hpp"
1010

1111
/**
1212
* This section contains a convenience MACRO which allows an easy specialization of

include/eigenpy/numpy.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#ifndef __eigenpy_numpy_hpp__
66
#define __eigenpy_numpy_hpp__
77

8-
#include <boost/python.hpp>
9-
#include "eigenpy/config.hpp"
8+
#include "eigenpy/fwd.hpp"
109

1110
#ifndef PY_ARRAY_UNIQUE_SYMBOL
1211
#define PY_ARRAY_UNIQUE_SYMBOL EIGENPY_ARRAY_API

include/eigenpy/registration.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
#ifndef __eigenpy_registration_hpp__
77
#define __eigenpy_registration_hpp__
88

9-
#include <boost/python.hpp>
10-
#include <boost/python/scope.hpp>
9+
#include "eigenpy/fwd.hpp"
1110

1211
namespace eigenpy
1312
{

include/eigenpy/solvers/BFGSPreconditioners.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#ifndef __eigenpy_bfgs_preconditioners_hpp__
1818
#define __eigenpy_bfgs_preconditioners_hpp__
1919

20-
#include <boost/python.hpp>
21-
#include <Eigen/Core>
20+
#include "eigenpy/fwd.hpp"
2221
#include <Eigen/IterativeLinearSolvers>
2322

2423
#include "eigenpy/solvers/BasicPreconditioners.hpp"

0 commit comments

Comments
 (0)