fixed value_cast<ToQP> with matching units but differing point_origin

This commit is contained in:
Yves Delley
2024-05-12 11:53:26 +02:00
parent ae912c0efb
commit 1e287c2a27

View File

@@ -767,7 +767,7 @@ template<auto H1, auto... T1, auto H2, auto... T2>
template<auto... Ms>
[[nodiscard]] consteval auto common_magnitude_type_impl(magnitude<Ms...>)
{
return (... * decltype(get_base_value(Ms)){}) * std::intmax_t{};
return (decltype(get_base_value(Ms)){} * ... * std::intmax_t{});
}
// Returns the most precise type to express the magnitude factor