fix: not enough changes were commited in one of the previous commits

This commit is contained in:
Mateusz Pusz
2023-08-24 19:32:14 +02:00
parent 1bc6fdece9
commit 85b6dd0e38

View File

@@ -48,7 +48,6 @@ namespace mp_units {
template<QuantitySpec auto ToQS, typename Q>
requires Quantity<std::remove_cvref_t<Q>> && (castable(Q::quantity_spec, ToQS))
[[nodiscard]] constexpr Quantity auto quantity_cast(Q&& q)
requires Quantity<std::remove_cvref_t<Q>> && (castable(q.quantity_spec, ToQS))
{
if constexpr (detail::QuantityKindSpec<std::remove_const_t<decltype(ToQS)>> &&
AssociatedUnit<std::remove_const_t<decltype(Q::unit)>>)