class Foo
{
public:
void method(int a,float b)
{
cout<<"This method takes float and int";
}
void method(char a,char b)
{
cout<<"This method takes two characters";
}
};
In a class with overloaded functions like the one above,creating a thread with boost::thread newThread(&Foo::method,foo_obj_ptr,a,b) throws the error " No overloaded function takes four arguments " . [ I have declared a and b as characters only.] My assumption is that with an overloaded function boost::thread is unable to bind correctly.Any solutions for this ?
I am using boost 1.54 with vs2010.