What's the easiest way to print the address of a member function?
<p>If I have a base class with a pure-virtual function, and a derived class that implements that function - what's the easiest way I can print out the address that the function actually gets called at?</p>

<pre><code>class A { public: virtual void func()=0; }

class B:A { 
    public: 
        void func() { /*implementation*/ }
        void func2() { *** I WANT TO PRINT THE ADDRESS OF func() HERE! *** }
};
</code></pre>

<p>Also, what's the easiest way to print out the address of a static function in a class, and to print out the address of a global function?</p>
