Original Post
🔒 Locked
pointer to member function?
Advertisement
don''t forget - member functions are members of an object. so you have to associate an object with the function pointer before you can call it.
the only exception is static member functions which don''t use any member data so don''t need an object (and don''t get a ''this'' pointer passed to them)
the function-pointer link should do you fine.
the only exception is static member functions which don''t use any member data so don''t need an object (and don''t get a ''this'' pointer passed to them)
the function-pointer link should do you fine.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement