Answer the question
In order to leave comments, you need to log in
Is it possible to get the method address of a particular object in order to pass it on to a pointer that will be passed to the function?
You need to get the address of a specific object, so that later it can be passed to the function.
I can get the address of a static method, but it will be a method of the whole class, like this:
sign = application::signal;
Then I can pass it to the function, but I need it to be the address of not a class method, but a method of a specific object. Is it possible?
Answer the question
In order to leave comments, you need to log in
std::bind(&Class::method, object_ptr, [...]) will help you. Provided that we are talking about C ++ 11, of course.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question