I have a function (not member of a class) which looks as follows:
void functionA(..., double (*pt2Cdf)(const double&),....)
which works wonderful if pt2Cdf just points to normal functions. But I would like that functionA also accepts member functions (of potentially different classes and which use the object's data but all with const double& argument) as input so that I can do calls as follows:
functionA(...,ObjectofClassA.Function,....);
functionA(...,ObjectofClassB.Function,....);
functionA(...,NormalNonMemberFunction,....);
Any hints? Thanks a lot!