Pointer to member function for as argument for global function
<p>There is such code:</p>

<pre><code>void foo(void (*fun_ptr)()){

}

class B{
public:
    B(){
        foo(some_fun);
    }
    void some_fun(){}
};
</code></pre>

<p>Compilation error:</p>

<pre><code>error: argument of type ‘void (B::)()’ does not match ‘void (*)()’
</code></pre>

<p>How to point to member function in this case? I cannot change declaration of function foo, only class B!</p>
