Merge pull request #708 from EALePain/fix/quantity_ref_plus_point_origin

fix/lvalue references + point origin does not compile
This commit is contained in:
Mateusz Pusz authored and GitHub committed 2025-06-19 17:55:05 +02:00
commit 01ceb31d14
1 file changed
+1 -1
@@ -68,7 +68,7 @@ struct point_origin_interface {
return quantity_point{std::forward<FwdQ>(q), po};
}
template<Quantity FwdQ, PointOrigin PO, QuantityOf<PO::_quantity_spec_> Q = std::remove_cvref_t<FwdQ>>
template<typename 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);