Commit e01cc8ff authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

define locally BOOST_BIND_GLOBAL_PLACEHOLDERS

ref. https://github.com/stack-of-tasks/tsid/pull/129
parent 1fccd528
......@@ -5,10 +5,7 @@
#ifndef __eigenpy_decompositions_computation_info_hpp__
#define __eigenpy_decompositions_computation_info_hpp__
#include <Eigen/Core>
#include <boost/python.hpp>
#include "eigenpy/config.hpp"
#include "eigenpy/fwd.hpp"
namespace eigenpy
{
......
......@@ -8,7 +8,6 @@
#include "eigenpy/fwd.hpp"
#include "eigenpy/deprecated.hpp"
#include "eigenpy/config.hpp"
#include "eigenpy/eigen-typedef.hpp"
#define ENABLE_SPECIFIC_MATRIX_TYPE(TYPE) \
......
......@@ -3,12 +3,13 @@
* Copyright 2018-2019, INRIA
*/
#include <boost/python.hpp>
#ifndef __eigenpy_exception_hpp__
#define __eigenpy_exception_hpp__
#include <exception>
#include <string>
#ifndef __eigenpy_exception_hpp__
#define __eigenpy_exception_hpp__
#include "eigenpy/fwd.hpp"
namespace eigenpy
{
......
......@@ -7,13 +7,21 @@
#include "eigenpy/config.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>
#include <Eigen/Core>
#include <boost/python/scope.hpp>
#define NO_IMPORT_ARRAY
#include "eigenpy/numpy.hpp"
#undef NO_IMPORT_ARRAY
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <Eigen/Core>
#if EIGEN_VERSION_AT_LEAST(3,2,90)
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned16
#else
......
......@@ -6,9 +6,8 @@
#ifndef __eigenpy_geometry_conversion_hpp__
#define __eigenpy_geometry_conversion_hpp__
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
#include <Eigen/Geometry>
#include <boost/python.hpp>
namespace eigenpy
{
......
......@@ -6,7 +6,7 @@
#ifndef __eigenpy_memory_hpp__
#define __eigenpy_memory_hpp__
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
/**
* This section contains a convenience MACRO which allows an easy specialization of
......
......@@ -5,8 +5,7 @@
#ifndef __eigenpy_numpy_hpp__
#define __eigenpy_numpy_hpp__
#include <boost/python.hpp>
#include "eigenpy/config.hpp"
#include "eigenpy/fwd.hpp"
#ifndef PY_ARRAY_UNIQUE_SYMBOL
#define PY_ARRAY_UNIQUE_SYMBOL EIGENPY_ARRAY_API
......
......@@ -6,8 +6,7 @@
#ifndef __eigenpy_registration_hpp__
#define __eigenpy_registration_hpp__
#include <boost/python.hpp>
#include <boost/python/scope.hpp>
#include "eigenpy/fwd.hpp"
namespace eigenpy
{
......
......@@ -17,8 +17,7 @@
#ifndef __eigenpy_bfgs_preconditioners_hpp__
#define __eigenpy_bfgs_preconditioners_hpp__
#include <boost/python.hpp>
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
#include <Eigen/IterativeLinearSolvers>
#include "eigenpy/solvers/BasicPreconditioners.hpp"
......
......@@ -17,8 +17,7 @@
#ifndef __eigenpy_basic_preconditioners_hpp__
#define __eigenpy_basic_preconditioners_hpp__
#include <boost/python.hpp>
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
#include <Eigen/IterativeLinearSolvers>
namespace eigenpy
......
......@@ -17,7 +17,7 @@
#ifndef __eigenpy_conjugate_gradient_hpp__
#define __eigenpy_conjugate_gradient_hpp__
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
#include <Eigen/IterativeLinearSolvers>
#include "eigenpy/solvers/IterativeSolverBase.hpp"
......
......@@ -17,9 +17,7 @@
#ifndef __eigenpy_iterative_solver_base_hpp__
#define __eigenpy_iterative_solver_base_hpp__
#include <boost/python.hpp>
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
#include "eigenpy/solvers/SparseSolverBase.hpp"
namespace eigenpy
......
......@@ -17,7 +17,7 @@
#ifndef __eigenpy_least_square_conjugate_gradient_hpp__
#define __eigenpy_least_square_conjugate_gradient_hpp__
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
#include <Eigen/IterativeLinearSolvers>
#include "eigenpy/solvers/IterativeSolverBase.hpp"
......
......@@ -17,8 +17,7 @@
#ifndef __eigenpy_sparse_solver_base_hpp__
#define __eigenpy_sparse_solver_base_hpp__
#include <boost/python.hpp>
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
namespace eigenpy
{
......
......@@ -2,8 +2,7 @@
* Copyright 2020 INRIA
*/
#include <boost/python.hpp>
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
#include "eigenpy/decompositions/decompositions.hpp"
......
/* Simple test using the boost::numpy interface: return an array and a matrix. */
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
#include "boost/numpy.hpp"
namespace bp = boost::python;
......
#include <Eigen/Core>
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
#include <boost/numpy.hpp>
......
#include <Eigen/Core>
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
#include <numpy/arrayobject.h>
namespace boopy
......
#include <Eigen/Core>
#include <boost/python.hpp>
#include "eigenpy/fwd.hpp"
#include <numpy/arrayobject.h>
namespace boopy
......
......@@ -3,9 +3,9 @@
* function raises and error at runtime due to inadequate binding.
*/
#include <boost/python.hpp>
#include <string>
#include <Eigen/Core>
#include "eigenpy/fwd.hpp"
char const* testchar()
......
Markdown is supported
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