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{}); })))