summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/destructible.h
blob: 6692ff564c742d3fb7a9109501feb2ab520b2fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __pbd_destructible_h__
#define __pbd_destructible_h__

#include <sigc++/signal.h>

namespace PBD {

class Destructible : public virtual sigc::trackable {
  public:
	Destructible() {}
	virtual ~Destructible () {}

	sigc::signal<void> GoingAway;

	void drop_references () const { GoingAway(); }
};

}

#endif /* __pbd_destructible_h__ */