I am having a pointer to the common static method
class MyClass
{
private:
static double ( *pfunction ) ( const Object *, const Object *);
...
};
<
template is a template :) it's not a concrete type and cannot be used as a member. e.g. you cannot define following class:
class A
{
template std::vector member;
}
because template is something that potentially can be specialized to many different types. you can do something like this:
template
struct A
{
static T (*pfunction)();
};
struct B
{
template
static T getT();
};
int (*A::pfunction)() = &B::getT;
here A is a specialized template and so has specialized member