From: Alec Thomas Date: Tue, 15 Sep 2015 01:16:19 +0000 (+1000) Subject: Fix spurious warning from VC. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=b14b35e14370d71f86f41e5f59d1bdb6f558c193;p=clyne%2Fentityx.git Fix spurious warning from VC. Fixes #109. --- 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 *pool = accomodate_component(); - new(pool->get(id.index())) C(std::forward(args) ...); + ::new(pool->get(id.index())) C(std::forward(args) ...); // Set the bit for this component. entity_component_mask_[id.index()].set(family);