Boost logo

Boost Users :

From: Boris (boriss_at_[hidden])
Date: 2007-06-06 11:00:55


On Wed, 06 Jun 2007 23:38:36 +0900, David Klein <dave_chp_at_[hidden]> wrote:

> Boris wrote:
>> void Hello() { }
>> boost::signal<void ()> sig;
>> sig.connect(&Hello); // OK
>> sig.disconnect(&Hello); // Error
> [...]Hi Boris,
>
> http://www.boost.org/doc/html/signals/tutorial.html#id1627590

Thanks for the link! But do I really have to collect and maintain various
connection objects for a signal? There is out-of-the-box support for
attaching callback functions to a signal. But in order to detach them I
have to maintain the connection objects for all the callback functions
myself? What's the rationale for this? Or is there is any utility class in
Boost.Signal I miss?

Boris


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