Re: copying sigc::signals



On Fri, 2010-03-05 at 10:07 +0100, Mark Roberts wrote:
> Dear Jonner et al
> 
> > When you copy a signal, any slots that you connect to the copied signal 
> > will also be triggered when you emit the original signal.
> 
> If this is so, I would expect it to work the other way round as well. Does 
> it? If (after the copy) I connect a slot to the original signal, will it 
> be triggered when I emit the copied signal?
> 
> Mark

Yes, it works both ways.  All copies of a sigc::signal object share the
same slot registration table, so any changes to one will affect all
others.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]