forked from mpusz/mp-units
fix: IntermediateDerivedQuantitySpec now also accounts for kind_of
This commit is contained in:
@@ -131,7 +131,10 @@ namespace detail {
|
||||
* explicitly not supported here.
|
||||
*/
|
||||
template<typename T>
|
||||
concept IntermediateDerivedQuantitySpec = is_specialization_of<T, derived_quantity_spec>;
|
||||
concept IntermediateDerivedQuantitySpec =
|
||||
is_specialization_of<T, derived_quantity_spec> ||
|
||||
(QuantityKindSpec<T> &&
|
||||
is_specialization_of<std::remove_const_t<decltype(T::_quantity_spec_)>, derived_quantity_spec>);
|
||||
|
||||
} // namespace detail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user