Wondering if anyone could help with a minor problem...
I have a class that contains a std::map that stores pointers to various objects as a void pointer and a name for the object, so within the class I have a template function where the object type is passed, as well as the object name in order to find it - if found, it will cast the void pointer to the corresponding object pointer type. So the function call looks like
MyClass* new = objectHolder->getObject <MyClass> ("MyClassname");
But is it possible to do it like this
MyClass* new = objectHolder->getObject ("MyClassname", MyClass);
Thanks in advance for any help :)