From d11326747b0281142ef98923d6efb0815b45af8b Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Thu, 5 Sep 2013 17:32:46 -0400 Subject: Speed up iterator creation a bit by avoiding some copies. --- entityx/Entity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entityx/Entity.h b/entityx/Entity.h index 28c1b5d..8edd109 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -291,8 +291,8 @@ class EntityManager : boost::noncopyable, public enable_shared_from_this manager, - std::vector predicates, - std::vector> unpackers, + const std::vector &predicates, + const std::vector> &unpackers, uint32_t index) : manager_(manager), predicates_(predicates), unpackers_(unpackers), i_(index), capacity_(manager_->capacity()) { next(); -- cgit v1.2.3