title: C++ assigning function pointed by function pointer to another function pointer
body: <p>I have a C++ function pointer in a class ClassA:</p>
  
  <pre><code>void (ClassA::*funcPntr1)(void);
  </code></pre>
  
  <p>pointing to function:</p>
  
  <pre><code>void func();
  </code></pre>
  
  <p>by using assignment:</p>
  
  <pre><code>functPntr1 = &amp;ClassA::func;
  </code></pre>
  
  <p>Now, i have another function pointer:</p>
  
  <pre><code>void (ClassA::*funcPntr2)(void);
  </code></pre>
  
  <p>I want funcPntr2 to point to the the function pointed by the funcPntr1.
  How do i do that?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>funcPntr2 = &amp;(this-&gt;*funcPntr); //normally, i invoke the function pointer by (this-&gt;*funcPntr)()
  </code></pre>
  
  <p>But is wrong. I have tried many logical combinations, but doesn't seem to work. </p>