Hi all
I am trying to use boost::bind
with a boost::function
using this.
It seems a trivial example but I cannot make it work.Can you help me?
Is it because it is not allowed or am I doing something wrong?
Thanks afg
// .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!!!
}