From 1e287c2a27f5ca77063d57d974a9b6102b3fd5e5 Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Sun, 12 May 2024 11:53:26 +0200 Subject: [PATCH] fixed value_cast with matching units but differing point_origin --- src/core/include/mp-units/framework/magnitude.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/framework/magnitude.h b/src/core/include/mp-units/framework/magnitude.h index 1653ad12..c7ec64db 100644 --- a/src/core/include/mp-units/framework/magnitude.h +++ b/src/core/include/mp-units/framework/magnitude.h @@ -767,7 +767,7 @@ template template [[nodiscard]] consteval auto common_magnitude_type_impl(magnitude) { - 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