Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-07-17 04:39:10


> Otherwise, try making a function object (untested):
>
> struct connect {
> typedef void result_type;
> template<class Signal, class F>
> void operator()(Signal& signal, const F& f) { signal.connect(f); }
> }
> ...
> boost::bind(connect(), boost::ref(done_), _1)
>

Great, it compiles!
Thanks a lot.


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