Tuesday, August 11, 2009

function pointer to class methods

C++ function pointer to a class method:

class Giant {
public:
void method();
};

typedef void (Giant::*Action)();


Taken from Command - Design Pattern
http://www.vincehuston.org/dp/command.html

No comments: