Jump to content
  • Advertisement
Sign in to follow this  
AAAP

Can something like this be done?

This topic is 4638 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
Advertisement
You guys know what im trying to say or do you just not have the answer? i can try and explain it again

Share this post


Link to post
Share on other sites

This topic is 4638 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  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!