fix: IntermediateDerivedQuantitySpec now also accounts for kind_of

This commit is contained in:
Mateusz Pusz
2023-06-05 19:26:53 +02:00
parent 06e360ea6d
commit 6364fcdf7e
2 changed files with 15 additions and 3 deletions
@@ -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