Game Engine Modules/Projects

Started by
30 comments, last by Hodgman 8 years, 3 months ago

I have tried putting the COMPONENT_REGISTER macros in the Run() function, but now i am getting a load of errors the first being: Error C2951: template declarations are only permitted at global, namespace, or class scope.

Advertisement
If you're switching from automagic registration to normal code execution, you'll have to rewrite your macro.
I haven't looked too closely at your current code, but something like this might work:
#define COMPONENT_REGISTER(TYPE, NAME)				\
	ComponentRegistry::RegistryEntry<TYPE>::Instance(NAME); //

This topic is closed to new replies.

Advertisement