From 40dc07a42c9120d56f90509935b9b27c87186613 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 6 Sep 2024 18:31:51 +0200 Subject: [PATCH] refactor: `quantity_point` default-constructibility removed from the `quantity_from` constraints --- src/core/include/mp-units/framework/quantity_point.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/framework/quantity_point.h b/src/core/include/mp-units/framework/quantity_point.h index 686563c6..5c11e943 100644 --- a/src/core/include/mp-units/framework/quantity_point.h +++ b/src/core/include/mp-units/framework/quantity_point.h @@ -295,7 +295,7 @@ public: #endif template - requires requires { quantity_point{} - PO2{}; } + requires requires(quantity_point qp) { qp - PO2{}; } [[nodiscard]] constexpr Quantity auto quantity_from(PO2) const { return *this - PO2{};