所以我想创建像一个函数:如何使用boost :: bind的结果创建一个函数?
void proxy_do_stuff(boost::bind return_here)
{
return_here(); // call stuff pased into boost::bind
}
而且我可以这样称呼它:
proxy_do_stuff(boost::bind(&myclass::myfunction, this, my_function_argument_value, etc_fun_argument));
如何做这种事?
以及如何使用这样的功能?我们不应该把它叫做'proxy_do_stuff(...)'吗? –
Rella
我添加了如何使用它的一部分。没有必要惹祸。 –