Skip to content

Commit 01ceb31

Browse files
authored
Merge pull request #708 from EALePain/fix/quantity_ref_plus_point_origin
fix/lvalue references + point origin does not compile
2 parents 088fb3c + bd3cc8b commit 01ceb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/include/mp-units/framework/quantity_point.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct point_origin_interface {
6868
return quantity_point{std::forward<FwdQ>(q), po};
6969
}
7070

71-
template<Quantity FwdQ, PointOrigin PO, QuantityOf<PO::_quantity_spec_> Q = std::remove_cvref_t<FwdQ>>
71+
template<typename FwdQ, PointOrigin PO, QuantityOf<PO::_quantity_spec_> Q = std::remove_cvref_t<FwdQ>>
7272
[[nodiscard]] friend constexpr QuantityPoint auto operator+(FwdQ&& q, PO po)
7373
{
7474
return po + std::forward<FwdQ>(q);

0 commit comments

Comments
 (0)