Don't.
Because a member function is meaningless without an object to invoke it on, youcan't do this directly (if The X Window System was rewritten in C++, it wouldprobably pass references to
objects around, not just pointers tofunctions; naturally the objects would embody the required function andprobably a whole lot more).
As a patch for existing software, use a top-level (non-member) function as awrapper which takes an object obtained through some other technique.Depending on the routin......
阅读全文