From 5142365ec6e92677c4cf671f3b5eb1633bd8a3ec Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 7 Nov 2022 16:12:31 -1000 Subject: [PATCH] fix: `inverse` of magnitude fixed --- src/core/include/units/magnitude.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h index 4e10452c..6d4a17bd 100644 --- a/src/core/include/units/magnitude.h +++ b/src/core/include/units/magnitude.h @@ -223,9 +223,10 @@ template } } -[[nodiscard]] consteval auto inverse(MagnitudeSpec auto el) +template +[[nodiscard]] consteval auto inverse(M) { - return power_v_or_T(); + return power_v_or_T(); } // `widen_t` gives the widest arithmetic type in the same category, for intermediate computations.