fix: make_quantity_point constraints fixed

This commit is contained in:
Mateusz Pusz
2025-01-10 23:05:36 +01:00
parent c7b822ec54
commit 0ba48b72f4

View File

@@ -51,8 +51,7 @@ template<PointOrigin PO>
return is_specialization_of_zeroth_point_origin<PO>; return is_specialization_of_zeroth_point_origin<PO>;
} }
template<typename FwdQ, PointOrigin PO, template<typename 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]] constexpr QuantityPoint auto make_quantity_point(FwdQ&& q, PO po) [[nodiscard]] constexpr QuantityPoint auto make_quantity_point(FwdQ&& q, PO po)
{ {
if constexpr (detail::is_zeroth_point_origin(PO{})) if constexpr (detail::is_zeroth_point_origin(PO{}))