From 86b81c9384bcd8160fc8bb6dc0b80a4b4e7e7d98 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Thu, 12 May 2022 21:53:51 +0000 Subject: [PATCH] Undo misguided fix attempt --- src/core/include/units/magnitude.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h index cc0028c3..271662f4 100644 --- a/src/core/include/units/magnitude.h +++ b/src/core/include/units/magnitude.h @@ -420,8 +420,7 @@ constexpr bool operator==(magnitude, magnitude) template constexpr auto pow(magnitude) { - constexpr auto exp = E; - if constexpr (exp.num == 0) { + if constexpr (E.num == 0) { return magnitude<>{}; } else { return magnitude{};