Formatted code: http://pastie.org/5074835
I have a cyclical dependency between the Entity class and the Component class.
I tried forwarding the class declaration but I have to access Component’s update method, and that way I can’t.
Is there a way to make this work without redesigning?
You need to
#include "Entity.h"inComponent.cpp.