> But searching the internet told me, that it is not possible to get the
> address from a member function in C++!?

I believe that's true but have never looked in-depth, however,...

> ...you have to give the GSL function the address of the member
> function, in that case the foo::operator()().

I'm suggesting storing a pointer to an instance in
gsl_function.params.  Then, in the function, retrieving that pointer,
casting it to the object type, and calling a method on the instance.

> Uh, what do you mean with 'it definitly _does not_complie'? So my idea is
> plain wrong?

Not at all.  Just that my sample code wouldn't build.

- Rhys

Reply via email to