Verified Commit 7a0a4fcf authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: use const_cast

parent 3f7aa4d3
......@@ -41,7 +41,8 @@ namespace eigenpy
ss << "The type " << typeid(Scalar).name() << " does not have a registered converter inside Boot.Python." << std::endl;
throw std::invalid_argument(ss.str());
}
return *py_type_ptr;
PyTypeObject * py_type_ptr = const_cast<PyTypeObject *>(const_py_type_ptr);
return py_type_ptr;
}
else
return getPyArrayType();
......
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