Skip to content

Commit 2a9b3b5

Browse files
committed
typeinfo: fix arguments for runtime outputs
1 parent b1ca46f commit 2a9b3b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/eigenpy/type_info.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ struct TypeInfoVisitor : public bp::def_visitor<TypeInfoVisitor<C> > {
6666

6767
private:
6868
static boost::typeindex::type_index boost_type_info(const C& self) {
69-
return boost::typeindex::type_id<C>();
69+
return boost::typeindex::type_id_runtime(self);
7070
}
7171

72-
static std::type_index std_type_info(const C& self) { return typeid(C); }
72+
static std::type_index std_type_info(const C& self) { return typeid(self); }
7373
};
7474

7575
} // namespace eigenpy

0 commit comments

Comments
 (0)