Boost logo

Boost Users :

Subject: [Boost-users] is it safe to do this with signals?
From: Germán Diago (germandiago_at_[hidden])
Date: 2010-03-28 08:21:41


Hello. I have a class like this:

class MyClass : public trackable {
   unique_ptr<void ()> Signal1;
   ...
};

This class is movable. So I move everything when transferring the internals.
I would like to know if this is safe to do in the presence of a
trackable base class or
if when the moved instance is destroyed this could cause problems. Thanks.


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