Skip to content

Commit

Permalink
fix: quantity_spec::op() compilation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jun 25, 2024
1 parent 985b375 commit ad3035e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/mp-units/framework/quantity_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ struct quantity_spec_interface {
}

template<typename Self, typename Q>
[[nodiscard]] constexpr Quantity auto operator()(this Self self, Q&& q)
requires Quantity<std::remove_cvref_t<Q>> &&
detail::QuantitySpecExplicitlyConvertibleTo<std::remove_reference_t<Q>::quantity_spec, self>
detail::QuantitySpecExplicitlyConvertibleTo<std::remove_reference_t<Q>::quantity_spec, Self{}>
[[nodiscard]] constexpr Quantity auto operator()(this Self self, Q&& q)
{
return quantity{std::forward<Q>(q).numerical_value_is_an_implementation_detail_,
detail::make_delta(detail::make_reference(self, std::remove_cvref_t<Q>::unit))};
Expand Down

0 comments on commit ad3035e

Please sign in to comment.