@@ -244,7 +244,7 @@ class quantity {
244244 return *this ;
245245 }
246246
247- template <detail::WeakUnitOf< quantity_spec> ToU>
247+ template <MP_UNITS_WEAK_UNIT_OF( quantity_spec) ToU>
248248 requires detail::ValuePreservingScaling<unit, ToU{}, rep>
249249 [[nodiscard]] constexpr QuantityOf<quantity_spec> auto in (ToU) const
250250 {
@@ -258,15 +258,15 @@ class quantity {
258258 return quantity<reference, ToRep>{*this };
259259 }
260260
261- template <RepresentationOf<quantity_spec> ToRep, detail::WeakUnitOf< quantity_spec> ToU>
261+ template <RepresentationOf<quantity_spec> ToRep, MP_UNITS_WEAK_UNIT_OF( quantity_spec) ToU>
262262 requires detail::ValuePreservingConstruction<ToRep, rep> &&
263263 detail::ValuePreservingConversion<unit, rep, ToU{}, ToRep>
264264 [[nodiscard]] constexpr QuantityOf<quantity_spec> auto in (ToU) const
265265 {
266266 return quantity<detail::make_reference (quantity_spec, ToU{}), ToRep>{*this };
267267 }
268268
269- template <detail::WeakUnitOf< quantity_spec> ToU>
269+ template <MP_UNITS_WEAK_UNIT_OF( quantity_spec) ToU>
270270 requires detail::SaneScaling<unit, ToU{}, rep>
271271 [[nodiscard]] constexpr QuantityOf<quantity_spec> auto force_in (ToU) const
272272 {
@@ -280,7 +280,7 @@ class quantity {
280280 return value_cast<ToRep>(*this );
281281 }
282282
283- template <RepresentationOf<quantity_spec> ToRep, detail::WeakUnitOf< quantity_spec> ToU>
283+ template <RepresentationOf<quantity_spec> ToRep, MP_UNITS_WEAK_UNIT_OF( quantity_spec) ToU>
284284 requires std::constructible_from<ToRep, rep> && detail::SaneScaling<unit, ToU{}, rep>
285285 [[nodiscard]] constexpr QuantityOf<quantity_spec> auto force_in (ToU) const
286286 {
@@ -311,14 +311,14 @@ class quantity {
311311 = delete ;
312312#endif
313313
314- template <detail::WeakUnitOf< quantity_spec> U>
314+ template <MP_UNITS_WEAK_UNIT_OF( quantity_spec) U>
315315 requires detail::ValuePreservingScaling<unit, U{}, rep>
316316 [[nodiscard]] constexpr rep numerical_value_in (U) const noexcept
317317 {
318318 return in (U{}).numerical_value_is_an_implementation_detail_ ;
319319 }
320320
321- template <detail::WeakUnitOf< quantity_spec> U>
321+ template <MP_UNITS_WEAK_UNIT_OF( quantity_spec) U>
322322 requires detail::SaneScaling<unit, U{}, rep>
323323 [[nodiscard]] constexpr rep force_numerical_value_in (U) const noexcept
324324 {
0 commit comments