diff --git a/src/core/include/mp-units/framework/value_cast.h b/src/core/include/mp-units/framework/value_cast.h index 5fe64373..020424dc 100644 --- a/src/core/include/mp-units/framework/value_cast.h +++ b/src/core/include/mp-units/framework/value_cast.h @@ -93,7 +93,7 @@ template [[nodiscard]] constexpr Quantity auto value_cast(FwdQ&& q) { - return detail::sudo_cast>(std::forward(q)); + return value_cast(std::forward(q)); } @@ -181,9 +181,7 @@ template [[nodiscard]] constexpr QuantityPoint auto value_cast(FwdQP&& qp) { - return quantity_point{ - value_cast(std::forward(qp).quantity_from_origin_is_an_implementation_detail_), - QP::point_origin}; + return value_cast(std::forward(qp)); } /**