Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Pointer to a fxn in a class

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

C++ question... I have a pointer thats declared to point to a function. I have a function in a class that has the same return type and parameters, but I can''t assign the function to the pointer because I have to declare the pointer to be able to have functions of that specific class assigned to it. I understand why this is, but is there any way to get around it? Thanks in advance BakaShinji

Share this post

Link to post
Share on other sites
I hate to say it, but...

RTF(rickin'')M: in this case, The C++ FAQ LITE. It has a nice section on pointers to functions, and your answer''s in there.

The C++ FAQ LITE really is the most useful document i''ve found on C++ issues.

Hope that''s helpful.


Share this post

Link to post
Share on other sites

  • 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!