Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux
[official-gcc.git] / libvtv / testsuite / libvtv.cc / event.h
blob61e1d7c917265b56761d6bda0a9ce37b05215835
1 class RefCountedBase {
2 protected:
3 bool derefBase()
5 return true;
7 };
9 template<typename T> class RefCounted : public RefCountedBase {
10 public:
11 void deref()
13 if (derefBase())
14 delete static_cast<T*>(this);
17 protected:
18 // RefCounted() { }
19 ~RefCounted()
25 class Event : public RefCounted<Event> {
26 public:
27 Event();
28 virtual ~Event();