mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
fix: get_equation
now calls proper pow()
overload
This commit is contained in:
@@ -610,7 +610,8 @@ template<QuantitySpec Q>
|
|||||||
template<QuantitySpec Q, int... Ints>
|
template<QuantitySpec Q, int... Ints>
|
||||||
[[nodiscard]] consteval auto get_equation(power<Q, Ints...>)
|
[[nodiscard]] consteval auto get_equation(power<Q, Ints...>)
|
||||||
{
|
{
|
||||||
return pow<power<Q, Ints...>::exponent>(Q::_equation_);
|
constexpr ratio exp = power<Q, Ints...>::exponent;
|
||||||
|
return pow<exp.num, exp.den>(Q::_equation_);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<ratio Complexity, IntermediateDerivedQuantitySpec Q>
|
template<ratio Complexity, IntermediateDerivedQuantitySpec Q>
|
||||||
|
Reference in New Issue
Block a user