Similarly, you must initialize each static member object in C ++ 03:
class Foo{ private: static double (*my_ptr_fun)(double,double); }; double bar(double, double); double (*Foo::my_ptr_fun)(double,double) = &bar;
In any case, you will need a pointer to a static function.
This is called initialization . instantiation means something else in C ++.
pmr
source share