Skip to content

Commit

Permalink
type index reconstruction in retval
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Aug 25, 2023
1 parent 14ac4e2 commit 32df19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/kep3/planet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ struct kep3_DLL_PUBLIC_INLINE_CLASS planet_inner final : planet_inner_base {

// Get the type at runtime.
[[nodiscard]] std::type_index get_type_index() const final {
return typeid(T);
return std::type_index(typeid(T));
}

// Raw getters for the internal instance.
Expand Down

0 comments on commit 32df19b

Please sign in to comment.