prueba.cpp: In constructor ‘foo::foo()’:
prueba.cpp:32: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&foo::function’
prueba.cpp:32: error: invalid use of member (did you forget the ‘&’ ?)
prueba.cpp:34: error: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&foo::function2’
prueba.cpp:34: error: invalid use of member (did you forget the ‘&’ ?)