Skip to content

Commit

Permalink
fix: make_quantity_point constraints fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jan 10, 2025
1 parent c7b822e commit 0ba48b7
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 @@ -51,8 +51,7 @@ template<PointOrigin PO>
return is_specialization_of_zeroth_point_origin<PO>;
}

template<typename FwdQ, PointOrigin PO,
QuantityOf<detail::get_delta_quantity_spec(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]] constexpr QuantityPoint auto make_quantity_point(FwdQ&& q, PO po)
{
if constexpr (detail::is_zeroth_point_origin(PO{}))
Expand Down

0 comments on commit 0ba48b7

Please sign in to comment.