#include #include #include struct X { int foo(int); }; int main() { boost::function2 f; f = &X::foo; X x; f(&x, 5); }