所以我想創建像一個函數:如何使用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
我添加了如何使用它的一部分。沒有必要惹禍。 –