有没有办法做这样的事情(MS VS 2008)?
boost::bind mybinder = boost::bind(/*something is binded here*/);
mybinder(/*parameters here*/); // <--- first call
mybinder(/*another parameters here*/); // <--- one more call
我试过
int foo(int){return 0;}
boost::bind<int(*)(int)> a = boost::bind(f, _1);
但它不起作用。