I have a simple class as mentioned below.

```
typedef mytype int;
typedef mytype2 float;

class A {
     .
     .
     void run (mytype t) { .... do something with t ..... }
     .
     .
}

```

I have another class where I have created a template function (to make it independent of class A) which is supposed to take function pointer to (i.e class A method run) along with its parameter. 

```
class B {
     .
     template< // how it should be defined >
             void myfunction ( // how parameters will be passed ) { }

```

The driver should be something like

```
      A a
      B b
      C c
      b.myfunction(&A::run, mytype);     // Or how it should be called
      b.myfunction(&B::run, mytype2);    // - do -

```

Ideas / Code / Reason ?

Regards,
Farrukh Arshad.