diff options
author | Alec Thomas <alec@swapoff.org> | 2015-09-15 11:16:19 +1000 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2015-09-15 11:16:29 +1000 |
commit | b14b35e14370d71f86f41e5f59d1bdb6f558c193 (patch) | |
tree | d820e96ad99b1b4aa3da7c1da560e5be99db3909 | |
parent | a7535d87a738157cfdfd30177828ae87c26ccaaa (diff) |
Fix spurious warning from VC.
Fixes #109.
-rw-r--r-- | entityx/Entity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h index 0565f9c..4fc5f5e 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -599,7 +599,7 @@ class EntityManager : entityx::help::NonCopyable { // Placement new into the component pool. Pool<C> *pool = accomodate_component<C>(); - new(pool->get(id.index())) C(std::forward<Args>(args) ...); + ::new(pool->get(id.index())) C(std::forward<Args>(args) ...); // Set the bit for this component. entity_component_mask_[id.index()].set(family); |