mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
fix: point_origin_interface::op+
constraints fixed
This commit is contained in:
@@ -68,8 +68,7 @@ struct point_origin_interface {
|
|||||||
return quantity_point{std::forward<FwdQ>(q), po};
|
return quantity_point{std::forward<FwdQ>(q), po};
|
||||||
}
|
}
|
||||||
|
|
||||||
template<Quantity FwdQ, PointOrigin PO,
|
template<Quantity FwdQ, PointOrigin PO, QuantityOf<PO::_quantity_spec_> Q = std::remove_cvref_t<FwdQ>>
|
||||||
QuantityOf<detail::get_delta_quantity_spec(PO::_quantity_spec_)> Q = std::remove_cvref_t<FwdQ>>
|
|
||||||
[[nodiscard]] friend constexpr QuantityPoint auto operator+(FwdQ&& q, PO po)
|
[[nodiscard]] friend constexpr QuantityPoint auto operator+(FwdQ&& q, PO po)
|
||||||
{
|
{
|
||||||
return po + std::forward<FwdQ>(q);
|
return po + std::forward<FwdQ>(q);
|
||||||
|
Reference in New Issue
Block a user