title: Passing a qualified non-static member function as a function pointer
body: <p>I have a function in an external library that I cannot change with the following signature:</p>
  
  <pre><code>void registerResizeCallback(void (*)(int, int))
  </code></pre>
  
  <p>I want to pass in a member function as the callback, as my callback needs to modify instance variables.</p>
  
  <p>Obviously this isn't possible with a simple:</p>
  
  <pre><code>registerResizeCallback(&amp;Window::Resize);
  </code></pre>
  
  <p>so I'm not really sure how to solve the problem.</p>