diff --git a/src/core/include/mp-units/framework/quantity.h b/src/core/include/mp-units/framework/quantity.h index 544bfe21..85c89111 100644 --- a/src/core/include/mp-units/framework/quantity.h +++ b/src/core/include/mp-units/framework/quantity.h @@ -584,7 +584,7 @@ public: template Q> requires(!Quantity) && (!Reference) && detail::InvokeResultOf, const Value&, Rep> - [[nodiscard]] friend constexpr QuantityOf auto operator/(const Value& val, const Q& q) + [[nodiscard]] friend constexpr Quantity auto operator/(const Value& val, const Q& q) { return ::mp_units::quantity{val / q.numerical_value_ref_in(unit), ::mp_units::one / R}; } diff --git a/src/core/include/mp-units/framework/reference.h b/src/core/include/mp-units/framework/reference.h index 10d0597d..102b09a9 100644 --- a/src/core/include/mp-units/framework/reference.h +++ b/src/core/include/mp-units/framework/reference.h @@ -199,7 +199,7 @@ template template Rep = std::remove_cvref_t> requires(!detail::OffsetUnit) -[[nodiscard]] constexpr quantity operator/(FwdRep&& lhs, R) +[[nodiscard]] constexpr Quantity auto operator/(FwdRep&& lhs, R) { return quantity{std::forward(lhs), inverse(R{})}; }