Sign in to follow this  

Can something like this be done?

This topic is 4354 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites

This topic is 4354 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this