From f267ab27a0229afcbe26e3244c4cd4279355ff9a Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 13 Jun 2023 17:39:09 +0300 Subject: [PATCH] refactor: `pow` now uses `quantity::one` instead of `rep(1)` --- src/utility/include/mp-units/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/include/mp-units/math.h b/src/utility/include/mp-units/math.h index 3c68244f..6e8291b5 100644 --- a/src/utility/include/mp-units/math.h +++ b/src/utility/include/mp-units/math.h @@ -56,7 +56,7 @@ template { using rep = TYPENAME Q::rep; if constexpr (Num == 0) { - return make_quantity(Q::reference)>(rep(1)); + return quantity(Q::reference), rep>::one(); } else if constexpr (ratio{Num, Den} == 1) { return q; } else {