From a9bcec46c810379b3c77296fb96cdf4f68f76dc5 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 6 Sep 2024 15:56:45 +0200 Subject: [PATCH] fix: `static` removed from a `constexpr` variable in a `constexpr` function as this is supported in C++23 only --- src/core/include/mp-units/bits/sudo_cast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/bits/sudo_cast.h b/src/core/include/mp-units/bits/sudo_cast.h index d6f6c841..3b489088 100644 --- a/src/core/include/mp-units/bits/sudo_cast.h +++ b/src/core/include/mp-units/bits/sudo_cast.h @@ -105,7 +105,7 @@ template; using multiplier_type = typename type_traits::multiplier_type; auto scale = [&](std::invocable auto func) { @@ -165,7 +165,7 @@ template; using value_traits = conversion_value_traits; using c_rep_type = typename type_traits::c_rep_type;