diff --git a/src/include/units/math.h b/src/include/units/math.h index 4275c085..534c0c0a 100644 --- a/src/include/units/math.h +++ b/src/include/units/math.h @@ -91,11 +91,11 @@ template * @param q Quantity being the base of the operation * @return Quantity The absolute value of a provided quantity */ -template -[[nodiscard]] inline Quantity auto abs(const Q& q) noexcept +template +[[nodiscard]] inline quantity abs(const quantity& q) noexcept requires requires { std::abs(q.count()); } { - return Q(std::abs(q.count())); + return quantity(std::abs(q.count())); } /**