From ed9e67537bbfa5395975e6c9403c92eb7429edd0 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 24 Sep 2024 10:12:47 +0200 Subject: [PATCH] fix: `mag` constraints fixed for clang-17 --- src/core/include/mp-units/framework/magnitude.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/include/mp-units/framework/magnitude.h b/src/core/include/mp-units/framework/magnitude.h index 7cdb9b30c..db0c2af6e 100644 --- a/src/core/include/mp-units/framework/magnitude.h +++ b/src/core/include/mp-units/framework/magnitude.h @@ -565,7 +565,9 @@ template MP_UNITS_EXPORT_BEGIN template +#if !(defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 18) requires detail::gt_zero +#endif constexpr Magnitude auto mag = detail::make_magnitude(); template