diff --git a/src/core/include/mp-units/quantity_point.h b/src/core/include/mp-units/quantity_point.h index 8edb6638..6d99eaae 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -258,14 +258,14 @@ template QP2> requires std::three_way_comparable_with [[nodiscard]] constexpr auto operator<=>(const QP1& lhs, const QP2& rhs) { - return lhs.relative() <=> rhs.relative(); + return lhs.absolute() <=> rhs.absolute(); } template QP2> requires std::equality_comparable_with [[nodiscard]] constexpr bool operator==(const QP1& lhs, const QP2& rhs) { - return lhs.relative() == rhs.relative(); + return lhs.absolute() == rhs.absolute(); } } // namespace mp_units