fix: MSVC complains that an address of NTTP is taken here

This commit is contained in:
Mateusz Pusz
2022-05-12 10:55:48 +02:00
parent 0ed43d3087
commit 0765fb26a2

View File

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