Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-02-05 19:42:57


> Frank Mori Hess wrote:
>
> [...]
>> Are there any possible
>> work-arounds besides using a private constructor with a static
>> factory function (a solution which doesn't extend well to derived
>> classes),

The original code also doesn't extend to derived classes if your program
takes advantage of the MT-ness of the signal. There is a window after the
connection is made in which another thread can invoke the signal and call
the slot, accessing the partially constructed object.


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