From 9d41fb33ef90ed03005c1947ada0f4543feda485 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 8 Jun 2023 17:34:19 +0200 Subject: [PATCH] fix: `RepSafeConstructibleFrom` argument value category fixed --- src/core/include/mp-units/quantity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/quantity.h b/src/core/include/mp-units/quantity.h index e342964e..0bc104ae 100644 --- a/src/core/include/mp-units/quantity.h +++ b/src/core/include/mp-units/quantity.h @@ -142,7 +142,7 @@ public: template requires(dimension == dimension_one) && - (unit == ::mp_units::one) && detail::RepSafeConstructibleFrom> + (unit == ::mp_units::one) && detail::RepSafeConstructibleFrom constexpr explicit(!std::convertible_to) quantity(Value&& v) : number_(std::forward(v)) { } @@ -322,7 +322,7 @@ private: friend constexpr quantity> make_quantity(Rep2&& v); template - requires detail::RepSafeConstructibleFrom> + requires detail::RepSafeConstructibleFrom constexpr explicit quantity(Value&& v) : number_(std::forward(v)) { }