We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca86a5d commit 2bdf6b8Copy full SHA for 2bdf6b8
include/eigenpy/registration.hpp
@@ -43,12 +43,12 @@ namespace eigenpy
43
{
44
namespace bp = boost::python;
45
46
- const bp::type_info info = bp::type_id<T>();
47
- const bp::converter::registration* reg = bp::converter::registry::query(info);
48
-
49
- if(check_registration<T>())
+ if(eigenpy::check_registration<T>())
50
51
- bp::scope().attr(info.name()) = reg->get_class_object();
+ const bp::type_info info = bp::type_id<T>();
+ const bp::converter::registration* reg = bp::converter::registry::query(info);
+ bp::handle<> class_obj(reg->get_class_object());
+ bp::scope().attr(reg->get_class_object()->tp_name) = bp::object(class_obj);
52
return true;
53
}
54
0 commit comments