mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 05:34:27 +02:00
fixed value_cast<ToQP> with matching units but differing point_origin
This commit is contained in:
@@ -767,7 +767,7 @@ template<auto H1, auto... T1, auto H2, auto... T2>
|
|||||||
template<auto... Ms>
|
template<auto... Ms>
|
||||||
[[nodiscard]] consteval auto common_magnitude_type_impl(magnitude<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
|
// Returns the most precise type to express the magnitude factor
|
||||||
|
Reference in New Issue
Block a user