All pastes #921626 Raw Edit

Something

public cpp v1 · immutable
#921626 ·published 2008-02-28 04:35 UTC
rendered paste body
#include <list>#include <boost/function.hpp>#include <boost/bind.hpp>typedef boost::function<void (int, int, unsigned long, bool)> fFunc;typedef std::list<fFunc>	FuncList;void TestFunc(int i, int j, unsigned long l, bool b){// do something}int main(){    FuncList l;    fFunc testfunc = boost::bind(&TestFunc, 1, 2, 0xFFFF, false);    l.push_back(testfunc);    fFunc f = l.front();    f();    return 0;}