[boost::signals] Who deletes copied objects passed to slots?

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

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
participants (2)
-
Ed Sutton
-
Michael Caisse