From 5382e08fddea20be40461b2439117bf1ba3e71bc Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 28 Dec 2024 14:12:28 +0100 Subject: [PATCH] fix: compilation fixed after rebase --- src/core/include/mp-units/framework/quantity_spec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/include/mp-units/framework/quantity_spec.h b/src/core/include/mp-units/framework/quantity_spec.h index 1731b57f..b2d1a80a 100644 --- a/src/core/include/mp-units/framework/quantity_spec.h +++ b/src/core/include/mp-units/framework/quantity_spec.h @@ -428,7 +428,7 @@ struct quantity_spec : detail::propagate_equation, detail } template, typename Self_ = Self> - requires detail::QuantitySpecExplicitlyConvertibleTo + requires(explicitly_convertible(Q::quantity_spec, Self_{})) [[nodiscard]] constexpr Quantity auto operator()(FwdQ&& q) const { return quantity{std::forward(q).numerical_value_is_an_implementation_detail_, @@ -469,12 +469,12 @@ struct quantity_spec : detail::propagate_equation, detail // clang-format on #if MP_UNITS_API_NO_CRTP template - requires(detail::QuantitySpecExplicitlyConvertibleTo) + requires(explicitly_convertible(Eq, QS)) struct quantity_spec : detail::quantity_spec_interface { #else template - requires(detail::QuantitySpecExplicitlyConvertibleTo) + requires(explicitly_convertible(Eq, QS)) struct quantity_spec : detail::quantity_spec_interface { #endif using _base_type_ = quantity_spec;