diff options
Diffstat (limited to 'libs/pbd/pbd/destructible.h')
-rw-r--r-- | libs/pbd/pbd/destructible.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/pbd/pbd/destructible.h b/libs/pbd/pbd/destructible.h new file mode 100644 index 0000000000..126bd04bba --- /dev/null +++ b/libs/pbd/pbd/destructible.h @@ -0,0 +1,20 @@ +#ifndef __pbd_destructible_h__ +#define __pbd_destructible_h__ + +#include <sigc++/signal.h> + +namespace PBD { + +class Destructible { + public: + Destructible() {} + virtual ~Destructible () {} + + sigc::signal<void> GoingAway; + + void drop_references () const { GoingAway(); } +}; + +} + +#endif /* __pbd_destructible_h__ */ |