Tag Archives: functor

Passing class member function as argument

Here is one example: Declaration: class CDifferentialFFT : public CDifferential {   …   double benchmark(void (CDifferential::*) (float*, float*, int), float* p, float* pz);   … } Implementation: double CDifferentialFFT::benchmark(void (CDifferential::*func) (float*, float*, int), float* p, float* pz) {   … … Continue reading

Posted in programming | Tagged , | Leave a comment