From 78bf9a9add012012d653e632ba77decb8d0ddd99 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 30 Sep 2023 04:34:19 +0200 Subject: [PATCH] Update src/core/include/mp-units/quantity.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.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 1970f016..f9fae4d7 100644 --- a/src/core/include/mp-units/quantity.h +++ b/src/core/include/mp-units/quantity.h @@ -204,8 +204,8 @@ public: template [[nodiscard]] explicit(is_specialization_of::from_numerical_value(numerical_value_)), convert_explicitly>) constexpr - operator Q() const&& noexcept(noexcept(quantity_like_traits::from_numerical_value(numerical_value_)) && - std::is_nothrow_copy_constructible_v) + operator Q() && noexcept(noexcept(quantity_like_traits::from_numerical_value(numerical_value_)) && + std::is_nothrow_move_constructible_v) { return quantity_like_traits::from_numerical_value(std::move(numerical_value_)).value; }