그래서 나는 같은 기능을 만들려면 :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
파트 사용법을 추가했습니다. bla-bla-bla가 필요 없습니다. –