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 );
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 4 of 4
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |