diff --git a/src/core/include/mp-units/framework/quantity_spec.h b/src/core/include/mp-units/framework/quantity_spec.h index 17d2af1e..4fc1da9a 100644 --- a/src/core/include/mp-units/framework/quantity_spec.h +++ b/src/core/include/mp-units/framework/quantity_spec.h @@ -1033,8 +1033,8 @@ template template [[nodiscard]] consteval specs_convertible_result convertible_kinds(From from, To to) { - constexpr auto from_root = detail::get_kind_tree_root(from); - constexpr auto to_root = detail::get_kind_tree_root(to); + constexpr auto from_root = detail::get_kind_tree_root(From{}); + constexpr auto to_root = detail::get_kind_tree_root(To{}); using enum specs_convertible_result; if constexpr (QuantityKindSpec) {