Hi friends,
I need to optimize a code but a few questions.
I have a method that makes the checking of configurations that depending on the state set, and a pointer to the class X and if you're in another state, for class Y.
These two classes are classes that have different but similar methods, I thought to use templates, but there is a template for pointer.
What I want is a pointer to a type (class), sometimes to another (depending configuration), so I can access the appropriate attributes. How do I do that? It enables someone to write a minimum practical example? It's possible?
Bookmarks