#include <Function.h>
Function<int(int,int)> f(&freeFunction);
Function<int()> f(&object,&ObjectType::memberFunction);
see also test/Function/FunctionTest.cpp (the modified test program from boost)