mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
fix: kind_of_
definition fixed again
This commit is contained in:
@ -460,9 +460,9 @@ concept QuantitySpecWithNoSpecifiers = detail::NamedQuantitySpec<T> || detail::I
|
||||
} // namespace detail
|
||||
|
||||
#ifdef __cpp_explicit_this_parameter
|
||||
template<detail::QuantitySpecWithNoSpecifiers auto Q>
|
||||
requires(get_kind(Q) == Q)
|
||||
struct kind_of_<Q> : Q {
|
||||
template<auto Q>
|
||||
requires detail::QuantitySpecWithNoSpecifiers<std::remove_cvref_t<decltype(Q)>> && (get_kind(Q) == Q)
|
||||
struct kind_of_<Q> : std::remove_cvref_t<decltype(Q)> {
|
||||
static constexpr auto _quantity_spec_ = Q;
|
||||
};
|
||||
#else
|
||||
|
Reference in New Issue
Block a user