mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 19:34:29 +02:00
fix: compilation fixed after rebase
This commit is contained in:
@@ -428,7 +428,7 @@ struct quantity_spec<Self, QS, Args...> : detail::propagate_equation<QS>, detail
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename FwdQ, Quantity Q = std::remove_cvref_t<FwdQ>, typename Self_ = Self>
|
template<typename FwdQ, Quantity Q = std::remove_cvref_t<FwdQ>, typename Self_ = Self>
|
||||||
requires detail::QuantitySpecExplicitlyConvertibleTo<Q::quantity_spec, Self_{}>
|
requires(explicitly_convertible(Q::quantity_spec, Self_{}))
|
||||||
[[nodiscard]] constexpr Quantity auto operator()(FwdQ&& q) const
|
[[nodiscard]] constexpr Quantity auto operator()(FwdQ&& q) const
|
||||||
{
|
{
|
||||||
return quantity{std::forward<FwdQ>(q).numerical_value_is_an_implementation_detail_,
|
return quantity{std::forward<FwdQ>(q).numerical_value_is_an_implementation_detail_,
|
||||||
@@ -469,12 +469,12 @@ struct quantity_spec<Self, QS, Args...> : detail::propagate_equation<QS>, detail
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
#if MP_UNITS_API_NO_CRTP
|
#if MP_UNITS_API_NO_CRTP
|
||||||
template<detail::NamedQuantitySpec auto QS, detail::DerivedQuantitySpec auto Eq, detail::QSProperty auto... Args>
|
template<detail::NamedQuantitySpec auto QS, detail::DerivedQuantitySpec auto Eq, detail::QSProperty auto... Args>
|
||||||
requires(detail::QuantitySpecExplicitlyConvertibleTo<Eq, QS>)
|
requires(explicitly_convertible(Eq, QS))
|
||||||
struct quantity_spec<QS, Eq, Args...> : detail::quantity_spec_interface {
|
struct quantity_spec<QS, Eq, Args...> : detail::quantity_spec_interface {
|
||||||
#else
|
#else
|
||||||
template<typename Self, detail::NamedQuantitySpec auto QS, detail::DerivedQuantitySpec auto Eq,
|
template<typename Self, detail::NamedQuantitySpec auto QS, detail::DerivedQuantitySpec auto Eq,
|
||||||
detail::QSProperty auto... Args>
|
detail::QSProperty auto... Args>
|
||||||
requires(detail::QuantitySpecExplicitlyConvertibleTo<Eq, QS>)
|
requires(explicitly_convertible(Eq, QS))
|
||||||
struct quantity_spec<Self, QS, Eq, Args...> : detail::quantity_spec_interface<Self> {
|
struct quantity_spec<Self, QS, Eq, Args...> : detail::quantity_spec_interface<Self> {
|
||||||
#endif
|
#endif
|
||||||
using _base_type_ = quantity_spec;
|
using _base_type_ = quantity_spec;
|
||||||
|
Reference in New Issue
Block a user