From 8e8f17cb960186248063d61889a05e55a40135b7 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 3 Apr 2023 17:45:43 +0200 Subject: [PATCH] fix: `get_equation` now calls proper `pow()` overload --- src/core/include/mp_units/quantity_spec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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