diff --git a/src/core/include/mp-units/quantity.h b/src/core/include/mp-units/quantity.h index 1970f016a9..f9fae4d744 100644 --- a/src/core/include/mp-units/quantity.h +++ b/src/core/include/mp-units/quantity.h @@ -204,8 +204,8 @@ class quantity { 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; }