有没有办法做这样的事情(MS VS 2008)?提高::绑定为L-值对象
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);
,但它不工作。
“不起作用”是什么意思? –
请接受一些以前的答案。你已经在这里待了一年多了,这已经足够了解SO的工作原理了。 –