From 029204825282e0d33f46e1f82b317c639bda2ca3 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 1 Aug 2023 22:04:46 +0200 Subject: [PATCH] refactor: `quantity_point` converting constructor simplified --- 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 9b185b93..8f0b6fcd 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -123,7 +123,7 @@ public: template QP> requires std::constructible_from constexpr explicit(!std::convertible_to) quantity_point(const QP& qp) : - q_(qp.relative() + QP::zero().absolute() - zero().absolute()) + q_(qp.absolute() - zero().absolute()) { }