title: Pass a function pointer of an overloaded member function?
body: <p>I want to pass a function pointer of my function repaint() which is overloaded in 3 versions. I want to pass the one without any arguments:</p>
  
  <pre><code>void repaint()
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>myObject = new Object(&amp;myclass::repaint);
  </code></pre>
  
  <p>But the compiler says "I don't know which Version to choose". OK.</p>
  
  <p>Then I tried</p>
  
  <pre><code>myObject = new Object(static_cast&lt;void(*)(void)&gt;(&amp;repaint);
  </code></pre>
  
  <p>Then I got (sorry for the bad translation):</p>
  
  <ul>
  <li>"invalid operation on an expression of a bound member function"</li>
  <li>"myObject::myObject no overloaded function accepts 3 arguments"</li>
  </ul>
  
  <p>How to pass it correctly?</p>