Undo misguided fix attempt

This commit is contained in:
Chip Hogg
2022-05-12 21:53:51 +00:00
parent 2bdc778ab6
commit 86b81c9384

View File

@@ -420,8 +420,7 @@ constexpr bool operator==(magnitude<LeftBPs...>, magnitude<RightBPs...>)
template<ratio E, auto... BPs>
constexpr auto pow(magnitude<BPs...>)
{
constexpr auto exp = E;
if constexpr (exp.num == 0) {
if constexpr (E.num == 0) {
return magnitude<>{};
} else {
return magnitude<pow(BPs, E)...>{};