Verified Commit ab986afe authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: change signature for allocate

It takes now a rvalue_from_python_storage<T>
parent df061716
......@@ -106,9 +106,11 @@ namespace eigenpy
typedef MatType Type;
typedef typename MatType::Scalar Scalar;
static void allocate(PyArrayObject * pyArray, void * storage)
static void allocate(PyArrayObject * pyArray,
bp::converter::rvalue_from_python_storage<MatType> * storage)
{
Type * mat_ptr = details::init_matrix_or_array<Type>::run(pyArray,storage);
void * raw_ptr = storage->storage.bytes;
Type * mat_ptr = details::init_matrix_or_array<Type>::run(pyArray,raw_ptr);
Type & mat = *mat_ptr;
const int pyArray_Type = EIGENPY_GET_PY_ARRAY_TYPE(pyArray);
......
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