forked from mpusz/mp-units
fix: MSVC complains that an address of NTTP is taken here
This commit is contained in:
@@ -420,7 +420,7 @@ constexpr bool operator==(magnitude<LeftBPs...>, magnitude<RightBPs...>)
|
|||||||
template<ratio E, auto... BPs>
|
template<ratio E, auto... BPs>
|
||||||
constexpr auto pow(magnitude<BPs...>)
|
constexpr auto pow(magnitude<BPs...>)
|
||||||
{
|
{
|
||||||
if constexpr (E == 0) {
|
if constexpr (E.num == 0) {
|
||||||
return magnitude<>{};
|
return magnitude<>{};
|
||||||
} else {
|
} else {
|
||||||
return magnitude<pow(BPs, E)...>{};
|
return magnitude<pow(BPs, E)...>{};
|
||||||
|
Reference in New Issue
Block a user