We have:
class A
{
public:
void f(int){}
void f(double){}
};
Let's use this way:
A a;
boost::bind( mem_fun_res<void, A, int>(&A::f), &a, 10 );
instead of:
boost::bind( (( void(A::*)(int) )&A::f), &a, 10 );
Printable View
We have:
class A
{
public:
void f(int){}
void f(double){}
};
Let's use this way:
A a;
boost::bind( mem_fun_res<void, A, int>(&A::f), &a, 10 );
instead of:
boost::bind( (( void(A::*)(int) )&A::f), &a, 10 );
It's hard to know what you need if you don't ask a question. But you may be looking for this: http://www.boost.org/doc/libs/1_38_0...err_overloaded
What is the function of bind() ?
It's basically a tool for creating function objects. You can reroute the order of parameters, supply some parameters when you create the function object, that type of thing. Look here for more info: http://www.boost.org/doc/libs/1_38_0...bind/bind.html