Commit 3f86011f authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

silence boost warnings from boost python

ref. https://github.com/stack-of-tasks/tsid/pull/129
parent e08b4f48
...@@ -24,6 +24,7 @@ SET(${PROJECT_NAME}_SCENARIO_HEADERS ...@@ -24,6 +24,7 @@ SET(${PROJECT_NAME}_SCENARIO_HEADERS
SET(${PROJECT_NAME}_PYTHON_HEADERS SET(${PROJECT_NAME}_PYTHON_HEADERS
bindings/python/fwd.hpp
bindings/python/geometry/ellipsoid.hpp bindings/python/geometry/ellipsoid.hpp
bindings/python/geometry/expose-geometry.hpp bindings/python/geometry/expose-geometry.hpp
bindings/python/geometry/linear-cone.hpp bindings/python/geometry/linear-cone.hpp
......
#ifndef __multicontact_api_python_fwd_hpp__
#define __multicontact_api_python_fwd_hpp__
// Silence a warning about a deprecated use of boost bind by boost python
// at least fo boost 1.73 to 1.75
// ref. https://github.com/stack-of-tasks/tsid/issues/128
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/python.hpp>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#endif // ifndef __multicontact_api_python_utils_printable_hpp__
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#define __multicontact_api_python_geometry_ellipsoid_hpp__ #define __multicontact_api_python_geometry_ellipsoid_hpp__
#include <pinocchio/fwd.hpp> #include <pinocchio/fwd.hpp>
#include <boost/python.hpp>
#include "multicontact-api/bindings/python/fwd.hpp"
#include "multicontact-api/geometry/ellipsoid.hpp" #include "multicontact-api/geometry/ellipsoid.hpp"
namespace multicontact_api { namespace multicontact_api {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#ifndef __multicontact_api_python_serialization_archive_hpp__ #ifndef __multicontact_api_python_serialization_archive_hpp__
#define __multicontact_api_python_serialization_archive_hpp__ #define __multicontact_api_python_serialization_archive_hpp__
#include <boost/python.hpp> #include "multicontact-api/bindings/python/fwd.hpp"
namespace multicontact_api { namespace multicontact_api {
namespace python { namespace python {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#ifndef __multicontact_api_python_utils_printable_hpp__ #ifndef __multicontact_api_python_utils_printable_hpp__
#define __multicontact_api_python_utils_printable_hpp__ #define __multicontact_api_python_utils_printable_hpp__
#include <boost/python.hpp> #include "multicontact-api/bindings/python/fwd.hpp"
namespace multicontact_api { namespace multicontact_api {
namespace python { namespace python {
......
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