Boost logo

Boost Users :

Subject: Re: [Boost-users] boost bind, issue moving from 1.57 to 1.60
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2016-06-16 15:17:37


On Thu, Jun 16, 2016 at 3:08 PM, Jason Mancini <jayrusman_at_[hidden]> wrote:
> We worked around this failure by changing:
>
>
> Func = boost::bind(Func, _1) && boost::bind(&Boom::Oops, _1);

I'm not sure why you would want to "&&" a bind result. I'm not exactly
sure what it returns, something pretty close to boost::function, I
would imagine, not a bool. Generally bind is useful for "callable
things"; functions, functors (function objects), and so on.

> to
>
>
> Func = boost::bind(AND, Func, &Boom::Oops, _1); // custom AND function

Share more of the context what it is you are actually doing here. This
sounds more like a promise/futures, potentially, than a bound
function.

> Not sure why it used to work, or why it still works with raw pointers, but
> not shared_ptr. The actual change happens from 1.59 (working) to 1.60
> (changed behavior).
>
>
> Jason
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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