Can something like this be done?
Hi everyone.
Say I've got a template which holds a user defined type (probably a class for a game object).
And I want to create an interface (using overloaded operators) for the developer to access the copy of the class in the template more easily IE:
Object<Player> P1;
P1->Draw();
basically, can I have a overload like this that points to a function of a member class of the template class? (sounds awkward to ask not sure if im wording that right).
Does this can be done by function pointers? like, for the operator overloading paramers, could put a pointer to the function to be used? If it cant be done its no major problem, there are other ways around it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement