Here is the problem:
1) I have a class like so:
class some_class
{
public:
some_type some_value;
int some_function(double *a, double *b, int c, int d, void *e);
};
2) Inside some_function
, I use some_values
from some_class
object to get a result.
3) So, I have a concrete object and I want to get a pointer to this object some_function
.
Is it possible? I can't use some_fcn_ptr
because the result of this function depends on the concrete some_value
of an object.
How can I get a pointer to some_function
of an object? Thanks.
typedef int (Some_class::*some_fcn_ptr)(double*, double*, int, int, void*);
See Question&Answers more detail:os