From 27cd47b7afd9c21a042a77355c0976cea54a51d6 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 11 May 2023 11:10:52 +0200 Subject: [PATCH] refactor: implicit conversion on construction allowed for `quantity_point` if `quantity` does the same --- 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 080199bc..96fdf890 100644 --- a/src/core/include/mp_units/quantity_point.h +++ b/src/core/include/mp_units/quantity_point.h @@ -97,7 +97,7 @@ public: template requires std::constructible_from - constexpr explicit quantity_point(T&& v) : q_(std::forward(v)) + constexpr explicit(!std::convertible_to) quantity_point(T&& v) : q_(std::forward(v)) { }