]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Fix spurious warning from VC.
authorAlec Thomas <alec@swapoff.org>
Tue, 15 Sep 2015 01:16:19 +0000 (11:16 +1000)
committerAlec Thomas <alec@swapoff.org>
Tue, 15 Sep 2015 01:16:29 +0000 (11:16 +1000)
Fixes #109.

entityx/Entity.h

index 0565f9c98805b1e9c8851a7e3f935cb0b56cf9f7..4fc5f5ed77ca2ee9433bf5f0238c1c6ac17d8ad0 100644 (file)
@@ -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);