diff --git a/src/core/include/mp-units/framework/quantity_point.h b/src/core/include/mp-units/framework/quantity_point.h index f3fa0c9c..fb582fd1 100644 --- a/src/core/include/mp-units/framework/quantity_point.h +++ b/src/core/include/mp-units/framework/quantity_point.h @@ -63,15 +63,14 @@ template Q = std::remove_cvref_t> - [[nodiscard]] friend constexpr quantity_point - operator+(PO, FwdQ&& q) + [[nodiscard]] friend constexpr QuantityPoint auto operator+(PO po, FwdQ&& q) { - return quantity_point{std::forward(q), PO{}}; + return quantity_point{std::forward(q), po}; } - template Q = std::remove_cvref_t> - [[nodiscard]] friend constexpr quantity_point - operator+(FwdQ&& q, PO po) + template Q = std::remove_cvref_t> + [[nodiscard]] friend constexpr QuantityPoint auto operator+(FwdQ&& q, PO po) { return po + std::forward(q); }