Skip to content

Commit

Permalink
Update src/core/include/mp-units/quantity.h
Browse files Browse the repository at this point in the history
Co-authored-by: Johel Ernesto Guerrero Peña <[email protected]>
  • Loading branch information
mpusz and JohelEGP authored Sep 30, 2023
1 parent 2539377 commit aff3b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/mp-units/quantity.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ class quantity {
template<QuantityLike Q>
[[nodiscard]] explicit(is_specialization_of<decltype(quantity_like_traits<Q>::from_numerical_value(numerical_value_)),
convert_explicitly>) constexpr
operator Q() const&& noexcept(noexcept(quantity_like_traits<Q>::from_numerical_value(numerical_value_)) &&
std::is_nothrow_copy_constructible_v<rep>)
operator Q() && noexcept(noexcept(quantity_like_traits<Q>::from_numerical_value(numerical_value_)) &&
std::is_nothrow_move_constructible_v<rep>)
{
return quantity_like_traits<Q>::from_numerical_value(std::move(numerical_value_)).value;
}
Expand Down

0 comments on commit aff3b6c

Please sign in to comment.