make MementoCommand inherit from sigc::trackable so that we don't double-call its...
[ardour.git] / libs / pbd / pbd / destructible.h
1 #ifndef __pbd_destructible_h__
2 #define __pbd_destructible_h__
3
4 #include <sigc++/signal.h>
5
6 namespace PBD {
7
8 class Destructible : public virtual sigc::trackable {
9   public:
10         Destructible() {}
11         virtual ~Destructible () {}
12
13         sigc::signal<void> GoingAway;
14
15         void drop_references () const { GoingAway(); }
16 };
17
18 }
19
20 #endif /* __pbd_destructible_h__ */