Replace Callable&& with auto&&
This commit is contained in:
parent
558a1f0299
commit
26353e423b
1 changed files with 4 additions and 4 deletions
|
@ -114,8 +114,8 @@ namespace zecsy
|
||||||
template<typename... T>
|
template<typename... T>
|
||||||
void remove(entity_id e);
|
void remove(entity_id e);
|
||||||
|
|
||||||
template<typename... T, typename Callable>
|
template<typename... T>
|
||||||
void query(Callable&& system);
|
void query(auto&& system);
|
||||||
private:
|
private:
|
||||||
entities_set alive_entities;
|
entities_set alive_entities;
|
||||||
entity_id entity_counter = 0;
|
entity_id entity_counter = 0;
|
||||||
|
@ -278,8 +278,8 @@ namespace zecsy
|
||||||
(remove<Rest>(e), ...);
|
(remove<Rest>(e), ...);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename... T, typename Callable>
|
template<typename... T>
|
||||||
inline void world::query(Callable&& system)
|
inline void world::query(auto&& system)
|
||||||
{
|
{
|
||||||
for(auto e: alive_entities)
|
for(auto e: alive_entities)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue