[source lang = "cpp"]// IComponent is an abstract C++ class that all of my components extend in the applicationIComponent@ animation = componentFactory.get("SpriteAnimation");[/source]
Obviously this isn't ideal; for one thing, errors won't be caught until the line is executed. I'm wondering if there's any way for a method to take a template parameter, like this:
[source lang = "cpp"]IComponent@ animation = componentFactory.get<SpriteAnimation>(); // returns an instance of SpriteAnimation[/source]
All I can find in the docs is a way to register template types, which won't help me with this. Is there something I'm missing, or could this be added in a future release?
Edited by Jake Albano, 08 August 2012 - 07:08 PM.