From: Lars Pensjö Date: Wed, 20 Mar 2013 06:11:27 +0000 (+0100) Subject: gcc 4.7.2 doesn't allow static keyword in member function definition. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=676c636bd3350cb29cda576cbe456d1fb9f2eb38;p=clyne%2Fentityx.git gcc 4.7.2 doesn't allow static keyword in member function definition. --- diff --git a/entityx/Entity.h b/entityx/Entity.h index 3f96628..0e6d861 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -522,7 +522,7 @@ class EntityManager : boost::noncopyable { }; template -static BaseComponent::Family Component::family() { +BaseComponent::Family Component::family() { static Family family = family_counter_++; assert(family < EntityManager::MAX_COMPONENTS); return family;