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