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.go
You can use std::is_member_function_pointer
class A { public: void foo() {}; } bool test = std::is_member_function_pointer::value;