diff --git a/src/details.hpp b/src/details.hpp index 95983b2c85adc2ad5aef40bb160ba462c78aab5b..887880feb9f282d3dec5af5f1cdc4bdee38beab3 100644 --- a/src/details.hpp +++ b/src/details.hpp @@ -58,7 +58,7 @@ namespace eigenpy { return make((PyObject*)pyArray,copy); } bp::object make(PyObject* pyObj, bool copy = false) { - boost::python::object m + bp::object m = pyMatrixType(bp::object(bp::handle<>(pyObj)), bp::object(), copy); Py_INCREF(m.ptr()); return m; @@ -67,7 +67,7 @@ namespace eigenpy protected: PyMatrixType() { - pyModule = boost::python::import("numpy"); + pyModule = bp::import("numpy"); pyMatrixType = pyModule.attr("matrix"); } @@ -154,7 +154,7 @@ namespace eigenpy // Convert obj_ptr into a Eigenvec static void construct(PyObject* pyObj, - bp::converter::rvalue_from_python_stage1_data* memory) + bp::converter::rvalue_from_python_stage1_data* memory) { using namespace Eigen; @@ -184,7 +184,7 @@ namespace eigenpy numpy_import_array(); if(check_registration<MatType>()) return; - boost::python::to_python_converter<MatType,EigenToPy<MatType> >(); + bp::to_python_converter<MatType,EigenToPy<MatType> >(); EigenFromPy<MatType>(); }