summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/destructible.h
blob: 126bd04bba4c8d887951a7bcdea0190cd77caf51 (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:
	Destructible() {}
	virtual ~Destructible () {}

	sigc::signal<void> GoingAway;

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

}

#endif /* __pbd_destructible_h__ */