Skip to content
Snippets Groups Projects
Verified Commit 747ef907 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: remove getPyType, now in Register

parent 10eb218f
Branches
Tags
No related merge requests found
......@@ -38,25 +38,6 @@ namespace eigenpy
return true;
}
template<typename Scalar>
PyTypeObject * getPyType()
{
if(!isNumpyNativeType<Scalar>())
{
const PyTypeObject * const_py_type_ptr = bp::converter::registered_pytype<Scalar>::get_pytype();
if(const_py_type_ptr == NULL)
{
std::stringstream ss;
ss << "The type " << typeid(Scalar).name() << " does not have a registered converter inside Boot.Python." << std::endl;
throw std::invalid_argument(ss.str());
}
PyTypeObject * py_type_ptr = const_cast<PyTypeObject *>(const_py_type_ptr);
return py_type_ptr;
}
else
return getPyArrayType();
}
template<typename Scalar>
bool np_type_is_convertible_into_scalar(const int np_type)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment