Skip to content

Commit

Permalink
typeinfo: fix arguments for runtime outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Sep 3, 2024
1 parent b1ca46f commit 2a9b3b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/eigenpy/type_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ struct TypeInfoVisitor : public bp::def_visitor<TypeInfoVisitor<C> > {

private:
static boost::typeindex::type_index boost_type_info(const C& self) {
return boost::typeindex::type_id<C>();
return boost::typeindex::type_id_runtime(self);
}

static std::type_index std_type_info(const C& self) { return typeid(C); }
static std::type_index std_type_info(const C& self) { return typeid(self); }
};

} // namespace eigenpy
Expand Down

0 comments on commit 2a9b3b5

Please sign in to comment.