All pastes #921625 Raw Edit

Something

public text v1 · immutable
#921625 ·published 2008-02-28 04:34 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;
}