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.
Game Engine Modules/Projects
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:
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
Popular Topics
Advertisement