Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-05-30 12:01:52


darrenvhart wrote:
> --- In Boost-Users_at_[hidden], "Peter Dimov" <pdimov_at_m...> wrote:
>>
>> You can use apply<> from <boost/bind/apply.hpp> instead of 'call':
>>
>> bind(apply<bool>(), bind(&widget::sig, &widget_a)) (); // should call
>> widget_a->sig
>
> Thank you for the reply.
>
> I have changed the line to use apply<bool>() and included the header
> file, but it won't compile complaining about noncopyable members of
> the signal of the widget. Any ideas what that is all about ?

Please change every 'F f' to 'F & f' in boost/bind/apply.hpp; this will take
care of the problem. I've already updated the CVS version. The problem is
that a signal is noncopyable and cannot be passed by value.


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