Jump to content
  • Advertisement

Archived

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

BakaShinji

Pointer to a fxn in a class

This topic is 6089 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
Advertisement
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.

ben.c

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!