group: decouple ::owned and owned types

This commit is contained in:
Michele Caini
2024-04-09 09:25:21 +02:00
parent 0d0880d81f
commit 35d048304f

View File

@@ -153,7 +153,9 @@ public:
size_type cnt = 0u;
for(auto pos = 0u; pos < length; ++pos) {
cnt += ((elem[pos] == entt::type_hash<typename Owned::element_type>::value()) || ...);
for(auto next = 0u; next < sizeof...(Owned); ++next) {
cnt += (elem[pos] == pools[next]->type().hash());
}
}
return cnt;