Can something like this be done?

Started by
1 comment, last by Sneftel 18 years, 3 months ago
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.
|aaap.penopticon.com| My website, including game projects. Collaboration/comments are welcome, please visit :)
Advertisement
You guys know what im trying to say or do you just not have the answer? i can try and explain it again
|aaap.penopticon.com| My website, including game projects. Collaboration/comments are welcome, please visit :)
Please don't crosspost on these forums.

This topic is closed to new replies.

Advertisement