これを使っboost::bind
てboost::function
使ってみました。些細な例のようですが、うまくいきません。手伝って頂けますか?
それは許可されていないからですか、それとも私は何か間違ったことをしているのですか?
// .h
class MyClass{
publc:
void DoSomething(
const std::string& a,
const std::string& b);
void DoABind();
}
//.cpp
void MyClass::DoABind(){
boost::function< void( const std::string& , const std::string& ) > callback(
boost::bind(
&MyClass::DoSomething,
this ));
// this line doesn't compile!!!
}