diff --git a/src/core/include/mp_units/quantity_spec.h b/src/core/include/mp_units/quantity_spec.h index f29ba8ed..1829ac5e 100644 --- a/src/core/include/mp_units/quantity_spec.h +++ b/src/core/include/mp_units/quantity_spec.h @@ -610,7 +610,8 @@ template template [[nodiscard]] consteval auto get_equation(power) { - return pow::exponent>(Q::_equation_); + constexpr ratio exp = power::exponent; + return pow(Q::_equation_); } template