From 79cfd3ec9a8292d80b931bde1a7a8de4b4e734ed Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 2 Oct 2024 18:01:34 +0200 Subject: [PATCH] fix: clang-16 compilation fixed --- src/core/include/mp-units/framework/expression_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/framework/expression_template.h b/src/core/include/mp-units/framework/expression_template.h index 5195000c..565ad8f0 100644 --- a/src/core/include/mp-units/framework/expression_template.h +++ b/src/core/include/mp-units/framework/expression_template.h @@ -408,7 +408,7 @@ template typename To, typename OneType, template typename To, typename OneType, template typename Pred, typename Lhs, typename Rhs> -[[nodiscard]] consteval auto expr_divide(Lhs lhs, Rhs rhs) +[[nodiscard]] MP_UNITS_CONSTEVAL auto expr_divide(Lhs lhs, Rhs rhs) { if constexpr (is_same_v) { return OneType{};