Finally get rid of this weird thing in dinkyecs where I was passing a const& to an _integer_ when a copy of the integer is exactly the same.

This commit is contained in:
Zed A. Shaw 2025-02-18 11:39:27 -05:00
parent 49a71e257e
commit 9c66e870d2
3 changed files with 18 additions and 17 deletions

View file

@ -181,7 +181,7 @@ namespace DinkyECS
}
template <typename Comp>
void query(std::function<void(const Entity &, Comp &)> cb)
void query(std::function<void(Entity, Comp &)> cb)
{
EntityMap &map = entity_map_for<Comp>();
@ -192,7 +192,7 @@ namespace DinkyECS
}
template <typename CompA, typename CompB>
void query(std::function<void(const Entity &, CompA &, CompB &)> cb)
void query(std::function<void(Entity, CompA &, CompB &)> cb)
{
EntityMap &map_a = entity_map_for<CompA>();
EntityMap &map_b = entity_map_for<CompB>();