aboutsummaryrefslogtreecommitdiffstats
path: root/entityx
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-07-02 09:23:48 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-07-02 09:23:48 -0400
commitd1d16ceb2cab505fb09ced115f5fb08bc3093acd (patch)
tree08b1ab7c68f9df49f1302fbfe01836c53188ec96 /entityx
parent226bae411b83d851d5b30e0b0fa28a68bb8e7040 (diff)
c++17 fixes, creating needed files
Diffstat (limited to 'entityx')
-rw-r--r--entityx/Entity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h
index e7d2e8d..6b9737e 100644
--- a/entityx/Entity.h
+++ b/entityx/Entity.h
@@ -467,7 +467,7 @@ class EntityManager : entityx::help::NonCopyable {
void each(typename identity<std::function<void(Entity entity, Components&...)>>::type f, bool dead = false) {
static std::mutex locked;
locked.lock();
- for (auto it : *this) {
+ for (Entity it : *this) {
if (dead || !it.has_component<Killed>())
f(it, *(it.template component<Components>().get())...);
}