I am currently trying to create a vector containing function of a class .
Here is my code :
typedef leap::float64 (DataReader::*getFonction)();
std::vector<getFonction> vec;
std::vector<getFonction>::iterator it;
vec.push_back(&DataReader::getLa);
vec.push_back(&DataReader::getLon);
for(it = vec.begin(); it<vec.end(); it++)
std::cout << *it << std::endl;
The function "get ..." (not static ) returned values are stored on shared resources and already initialized. But then , they return me only the values '1'.
An idea?