From 66a24e47c79a33f0925e8882d15bf366492c957b Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 30 Jun 2023 17:34:47 +0100 Subject: [PATCH] fix: `quantity_point` converting constructor fixed to account for different offsets of point origins --- 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 56829c29..4e7de650 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()) + q_(qp.relative() + QP::zero() - zero()) { }