Boost logo

Boost :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2004-09-23 05:54:50


Repost since a week has gone by without response (which seems like an
eternity on this list ;-).

On Thu, 16 Sep 2004 10:03:01 -0400
Jody Hagins <jody-boost-011304_at_[hidden]> wrote:

>
> AFICT, the rationale for copying a slot is missing, hence the
> following questions...
>
>
> boost::signal<void (int)> some_signal;
> Some_Slot slot1;
> some_signal.connect(slot1);
> Some_Slot slot2(slot1);
> some_signal(42);
>
>
>
> The above code will only signal slot1. If slot2 is a copy of slot1,
> should it also get the signal? I know it does not work that way, but
> I was wondering why that decision was made. Also, if I *do* want the
> copy to receive the same signals, how can I do so?
>
>
> Thanks!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk