19 Sep
2013
19 Sep
'13
7:37 p.m.
Hi Vishal, vishal rawate wrote:
Hello,
I am trying to use Boost::Bind to bind my function but I am getting an error as Bind cannot diffrentiate between the constructors even though they have diffrent function signatures.
TestBind(boost::bind((&Test::process), &t1, _1));
I would highly appreciate any help.
Thanks
This is a problem with binding overloaded functions. See http://www.boost.org/doc/libs/1_54_0/libs/bind/bind.html#err_overloaded I typically static_cast, when I can't use a C++11 lambda. HTH, Nate