|
|
@@ -88,7 +88,7 @@ class basic_group<Entity, get_t<Get...>> {
|
|
|
using pool_type = std::conditional_t<std::is_const_v<Component>, const sparse_set<Entity, std::remove_const_t<Component>>, sparse_set<Entity, Component>>;
|
|
|
|
|
|
// we could use pool_type<Get> *..., but vs complains about it and refuses to compile for unknown reasons (likely a bug)
|
|
|
- basic_group(sparse_set<Entity> *ref, sparse_set<Entity, std::remove_const_t<Get>> *... get) ENTT_NOEXCEPT
|
|
|
+ basic_group(sparse_set<Entity> *ref, pool_type<Get> *... get) ENTT_NOEXCEPT
|
|
|
: handler{ref},
|
|
|
pools{get...}
|
|
|
{}
|
|
|
@@ -418,7 +418,7 @@ class basic_group<Entity, get_t<Get...>, Owned...> {
|
|
|
using component_iterator_type = decltype(std::declval<pool_type<Component>>().begin());
|
|
|
|
|
|
// we could use pool_type<Type> *..., but vs complains about it and refuses to compile for unknown reasons (likely a bug)
|
|
|
- basic_group(const typename basic_registry<Entity>::size_type *sz, sparse_set<Entity, std::remove_const_t<Owned>> *... owned, sparse_set<Entity, std::remove_const_t<Get>> *... get) ENTT_NOEXCEPT
|
|
|
+ basic_group(const typename basic_registry<Entity>::size_type *sz, pool_type<Owned> *... owned, pool_type<Get> *... get) ENTT_NOEXCEPT
|
|
|
: length{sz},
|
|
|
pools{owned..., get...}
|
|
|
{}
|