|
Boost Users : |
Subject: Re: [Boost-users] Boost::Bind Problem
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2013-09-19 15:37:44
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net