From bb78d160e79450d941a6fe0402783c32cc36e427 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 16 May 2024 18:47:52 +0200 Subject: [PATCH] fix: `kind_of_` definition fixed again --- src/core/include/mp-units/quantity_spec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/include/mp-units/quantity_spec.h b/src/core/include/mp-units/quantity_spec.h index c5741a74..e0d38f7a 100644 --- a/src/core/include/mp-units/quantity_spec.h +++ b/src/core/include/mp-units/quantity_spec.h @@ -460,9 +460,9 @@ concept QuantitySpecWithNoSpecifiers = detail::NamedQuantitySpec || detail::I } // namespace detail #ifdef __cpp_explicit_this_parameter -template - requires(get_kind(Q) == Q) -struct kind_of_ : Q { +template + requires detail::QuantitySpecWithNoSpecifiers> && (get_kind(Q) == Q) +struct kind_of_ : std::remove_cvref_t { static constexpr auto _quantity_spec_ = Q; }; #else