From 65a3c80a5fce7c25d0b569254c38ee89be9e413e Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 5 Nov 2024 08:06:04 +0100 Subject: [PATCH] refactor: `max` used in one of the `explode` overloads --- src/core/include/mp-units/framework/quantity_spec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/framework/quantity_spec.h b/src/core/include/mp-units/framework/quantity_spec.h index 802cece1..bfe9d0b2 100644 --- a/src/core/include/mp-units/framework/quantity_spec.h +++ b/src/core/include/mp-units/framework/quantity_spec.h @@ -737,7 +737,7 @@ template den ? num : den; + constexpr auto max_compl = max(num, den); if constexpr (max_compl == Complexity || ((num >= den && !requires { explode_to_equation(Num{}); }) || (num < den && !requires { explode_to_equation(Den{}); })))