diff --git a/src/core/include/mp-units/quantity.h b/src/core/include/mp-units/quantity.h index 1e07a43e..de70bec6 100644 --- a/src/core/include/mp-units/quantity.h +++ b/src/core/include/mp-units/quantity.h @@ -198,10 +198,10 @@ public: } template - requires requires(quantity q) { value_cast(q); } + requires requires(quantity q) { q.force_in(U{}); } [[nodiscard]] constexpr rep force_numerical_value_in(U) const noexcept { - return value_cast(*this).numerical_value_in(U{}); + return (*this).force_in(U{}).numerical_value_ref_in(U{}); } // member unary operators