Verified Commit 6b4379e3 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

types: getitem should not use references

parent 8dc3d805
......@@ -71,12 +71,11 @@ namespace eigenpy
///
/// \returns PyObject corresponding to the python datastream.
///
inline static PyObject * getitem(void * ip, void * ap)
inline static PyObject * getitem(void * ip, void * /*ap*/)
{
// std::cout << "getitem" << std::endl;
PyArrayObject * py_array = static_cast<PyArrayObject *>(ap);
// std::cout << "getitem" << std::endl;
T * elt_ptr = static_cast<T*>(ip);
bp::object m(boost::ref(*elt_ptr));
bp::object m(*elt_ptr);
Py_INCREF(m.ptr());
return m.ptr();
}
......
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