From 998266e780edda307f429490b61859b1f2f8eb77 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Fri, 31 Dec 2021 09:35:30 -0500 Subject: [PATCH] Try fixing MSVC 14.2 I don't know how to run the build directly, but it seems like this should work. --- src/core/include/units/magnitude.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h index 88d231de..943cab2e 100644 --- a/src/core/include/units/magnitude.h +++ b/src/core/include/units/magnitude.h @@ -261,10 +261,11 @@ struct product, Tail1...>, magnitude, Tail2...>> { using tail_product = product_t, magnitude>; + static inline constexpr auto Pow = Pow1 + Pow2; using type = std::conditional_t< - ((Pow1 + Pow2).num == 0), + Pow.num == 0, tail_product, - prepend_base_t, tail_product>>; + prepend_base_t, tail_product>>; }; // N-ary case (N > 2).