From 811b6ba53d8ff726fe40f08d01250fd6c6b553c4 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Fri, 28 Jan 2022 22:24:30 +0000 Subject: [PATCH] Try inlining the fold expression to satisfy (?) MSVC --- src/core/include/units/magnitude.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h index 14682235..f6f3731f 100644 --- a/src/core/include/units/magnitude.h +++ b/src/core/include/units/magnitude.h @@ -336,7 +336,7 @@ struct magnitude { // The value of this magnitude, expressed in a given type. template - requires (magnitude::is_magnitude_integral || std::is_floating_point_v) + requires (std::is_floating_point_v || (detail::is_integral(BPs) && ...)) static constexpr T value = detail::checked_static_cast( (detail::compute_base_power(BPs) * ...)); };