forked from mpusz/mp-units
fix: kind_of_
definition fixed again
This commit is contained in:
@@ -460,9 +460,9 @@ concept QuantitySpecWithNoSpecifiers = detail::NamedQuantitySpec<T> || detail::I
|
|||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
#ifdef __cpp_explicit_this_parameter
|
#ifdef __cpp_explicit_this_parameter
|
||||||
template<detail::QuantitySpecWithNoSpecifiers auto Q>
|
template<auto Q>
|
||||||
requires(get_kind(Q) == Q)
|
requires detail::QuantitySpecWithNoSpecifiers<std::remove_cvref_t<decltype(Q)>> && (get_kind(Q) == Q)
|
||||||
struct kind_of_<Q> : Q {
|
struct kind_of_<Q> : std::remove_cvref_t<decltype(Q)> {
|
||||||
static constexpr auto _quantity_spec_ = Q;
|
static constexpr auto _quantity_spec_ = Q;
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user