I have a problem compiling a class that has pointers to functions as member variables. Pointers relate to functions that take an instance of a class as an argument.
how
template<class T, int N>
double (*f)(Vector<T,N> v);
I get 'error: data member' f 'cannot be a member template. The compiler is gcc 4.2.
Edit
Before using templates, I just had
double (*f)(Vector v);
It also works
double (*f)(Vector<double,2> v)
But I would like to have a pointer to a function for a function that takes a common vector as an argument.
source
share