Skip to content

Commit

Permalink
const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
willdealtry committed Jan 7, 2025
1 parent a2378fb commit d706c1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/arcticdb/processing/clause_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ std::vector<std::vector<EntityId>> offsets_to_entity_ids(const std::vector<std::
* clauses.
*/
template<class... Args>
ProcessingUnit gather_entities(ComponentManager& component_manager, std::vector<EntityId>&& entity_ids) {
ProcessingUnit gather_entities(ComponentManager& component_manager, const std::vector<EntityId>& entity_ids) {
ProcessingUnit res;
auto components = component_manager.get_entities<Args...>(entity_ids);
([&]{
Expand Down
2 changes: 1 addition & 1 deletion cpp/arcticdb/processing/component_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class ComponentManager {
}
}

static_assert(sizeof(EntityId) == sizeof(uint64_t));
static_assert(sizeof(entt::entity) == sizeof(uint64_t));

// Get a collection of entities. Returns a tuple of vectors, one for each component requested via Args
template<class... Args>
Expand Down

0 comments on commit d706c1a

Please sign in to comment.