Boost logo

Boost :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2004-09-16 09:03:01


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