Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost::signals] Who deletes copied objects passed to slots?
From: Michael Caisse (boost_at_[hidden])
Date: 2009-11-17 11:34:33


Ed Sutton wrote:
> I am using boost::signals2 to pass copied objects from my library's worker thread to a client GUI. While this works well, the GUI must delete the copied objects when done which seems wrong. Are there any techniques I could use so that the client would not be responsible for the object deletion?
>
> Thanks in advance,
>
> -Ed
>
> Multi-threaded
> Red Hat Enterprise 5.x
> QT 4x
>
>

boost::shared_ptr ?

-- 
----------------------------------
Michael Caisse
Object Modeling Designs
www.objectmodelingdesigns.com

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