Why member functions cannot be used as template arguments? For example, I want to do like:
struct Foo { void Bar() { // do something } }; template &
They can be used as non-type parameters, but you need to use the right syntax
struct Foo { void Bar() { // do something } }; template void Call(TOwner *p) { (p->*func)(); } int main() { Foo a; Call(&a); return 0; }