
It's amazing that function_traits in Boost.type_traits does not support member function traits. As I need this feature recently, I wrote a simple implementation and discuss it with John Maddock, but he gave me following reply: John Maddock <john@johnmaddock.co.uk> wrote:
I don't think this is quite the right approach: function_traits was deliberately written *not* to work with function-pointers - since you can always strip the pointer off before passing the type to function_traits - but handling member function pointers raise some interesting wider questions.
I'm not sure the meaning of "wider questions". Could anyone tell me what is the question and the differences between global function pointers and member function pointers, please? Regards, Realdodo Du realdodo.d@gmail.com