Check if a class has a member function of a given signature
问题 I\'m asking for a template trick to detect if a class has a specific member function of a given signature. The problem is similar to the one cited here http://www.gotw.ca/gotw/071.htm but not the same: in the item of Sutter\'s book he answered to the question that a class C MUST PROVIDE a member function with a particular signature, else the program won\'t compile. In my problem I need to do something if a class has that function, else do \"something else\". A similar problem was faced by