From dfaf2937743c1c3856c5ea37c93fa82686d0d427 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 30 Jun 2023 17:35:32 +0100 Subject: [PATCH] fix: `quantity_point` converting constructor fixed to account for different offsets of point origins cntd... --- src/core/include/mp-units/quantity_point.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/quantity_point.h b/src/core/include/mp-units/quantity_point.h index 4e7de650..7c91f93b 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -115,7 +115,7 @@ public: template QP> requires std::constructible_from constexpr explicit(!std::convertible_to) quantity_point(const QP& qp) : - q_(qp.relative() + QP::zero() - zero()) + q_(qp.relative() + QP::zero().absolute() - zero().absolute()) { }