Skip to content

Commit

Permalink
fix: point_origin_interface::op+ constraints fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jan 10, 2025
1 parent 3bac7a4 commit c7b822e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/include/mp-units/framework/quantity_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ struct point_origin_interface {
return quantity_point{std::forward<FwdQ>(q), po};
}

template<Quantity FwdQ, PointOrigin PO,
QuantityOf<detail::get_delta_quantity_spec(PO::_quantity_spec_)> Q = std::remove_cvref_t<FwdQ>>
template<Quantity FwdQ, PointOrigin PO, QuantityOf<PO::_quantity_spec_> Q = std::remove_cvref_t<FwdQ>>
[[nodiscard]] friend constexpr QuantityPoint auto operator+(FwdQ&& q, PO po)
{
return po + std::forward<FwdQ>(q);
Expand Down

0 comments on commit c7b822e

Please sign in to comment.