mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
fix: compilation fixed on C++23
This commit is contained in:
@@ -452,7 +452,7 @@ template<QuantitySpec Q>
|
|||||||
#ifdef __cpp_explicit_this_parameter
|
#ifdef __cpp_explicit_this_parameter
|
||||||
template<auto Q>
|
template<auto Q>
|
||||||
requires(detail::QuantitySpecWithNoSpecifiers<std::remove_const_t<decltype(Q)>>) &&
|
requires(detail::QuantitySpecWithNoSpecifiers<std::remove_const_t<decltype(Q)>>) &&
|
||||||
(detail::detail::get_kind_tree_root(Q) == Q)
|
(detail::get_kind_tree_root(Q) == Q)
|
||||||
struct kind_of_<Q> : std::remove_const_t<decltype(Q)> {
|
struct kind_of_<Q> : std::remove_const_t<decltype(Q)> {
|
||||||
static constexpr auto _quantity_spec_ = Q;
|
static constexpr auto _quantity_spec_ = Q;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user