fix: remove_kind fixed
This commit is contained in:
1 parent
c2e1b31024
commit
b21af8cabb
1 file changed
+3
-6
@@ -1427,12 +1427,9 @@ template<typename Self, NamedQuantitySpec auto QS, auto... Args>
|
||||
template<QuantitySpec Q>
|
||||
[[nodiscard]] consteval auto remove_kind(Q q)
|
||||
{
|
||||
if constexpr (detail::QuantityKindSpec<Q>) {
|
||||
if constexpr (requires { Q::_parent_; })
|
||||
return Q::_parent_;
|
||||
else
|
||||
return Q::_equation_;
|
||||
} else
|
||||
if constexpr (detail::QuantityKindSpec<Q>)
|
||||
return Q::_quantity_spec_;
|
||||
else
|
||||
return q;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user