[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] Interpolated Values as function return
From: |
Rhys Ulerich |
Subject: |
Re: [Help-gsl] Interpolated Values as function return |
Date: |
Mon, 11 Nov 2013 12:04:57 -0600 |
> 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