Boost logo

Boost Users :

Subject: Re: [Boost-users] [Singals]problem about add a new connection in slot callback
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2009-08-07 21:02:23


On Friday 07 August 2009, mos wrote:
> int the function test_a , I perfer call test_b next signal that mean
> output is "a b" but test_b is called immediately and the output is "a b
> b"
>
> how can I solve the problem?

You could use Boost.Signals2. It has slightly different behavior than the
original Boost.Signals when a slot is connected during invocation. The
newly connected slot is not seen until subsequent invocations, which seems
to be the behavior you want.




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