fix: quantity_point::point_for(PO) constraints fixed

This commit is contained in:
Mateusz Pusz
2023-12-03 19:24:29 +01:00
parent 40c2ecb2aa
commit 13b450e8cf

View File

@ -183,7 +183,7 @@ public:
quantity_point& operator=(const quantity_point&) = default;
quantity_point& operator=(quantity_point&&) = default;
template<PointOriginFor<quantity_spec> NewPO>
template<detail::SameAbsolutePointOriginAs<absolute_point_origin> NewPO>
[[nodiscard]] constexpr MP_UNITS_CONSTRAINED_AUTO_WORKAROUND(QuantityPointOf<NewPO{}>) auto point_for(
NewPO new_origin) const
{