From 099927468074a6fc13d9437f86c0211781c1d109 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 30 Sep 2023 04:34:46 +0200 Subject: [PATCH] Update src/core/include/mp-units/quantity_point.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Johel Ernesto Guerrero Peña --- src/core/include/mp-units/quantity_point.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/quantity_point.h b/src/core/include/mp-units/quantity_point.h index 5da5dd5e..068a4a40 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -199,8 +199,8 @@ public: [[nodiscard]] explicit( is_specialization_of::from_quantity(quantity_from_origin_)), convert_explicitly>) constexpr - operator QP() const&& noexcept(noexcept(quantity_point_like_traits::from_quantity(quantity_from_origin_)) && - std::is_nothrow_copy_constructible_v) + operator QP() && noexcept(noexcept(quantity_point_like_traits::from_quantity(quantity_from_origin_)) && + std::is_nothrow_move_constructible_v) { return quantity_point_like_traits::from_quantity(std::move(quantity_from_origin_)).value; }