passing non static member function pointer in C++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12514447/function-pointer-for-a-member-function">function pointer for a member function</a>  </p>
</blockquote>



<p>I have to come up with some thing like below in C++.</p>

<p>I have a member function in following class.</p>

<pre><code>class myClass {
public:
       void myFunc();

};
</code></pre>

<p>I have following function in another library which I should call and pass a call back function which is myFunc() of object</p>

<pre><code>void AnotherFunction((void*)(pCallback)())
{
   // Here I will call back function
}
</code></pre>

<p>How can I acheive above? I am aware of static function of a class to pass a call back but here I have to make sure function is thread safe. With out using static how can I achieve this requirement?</p>
