gcc/libvtv/testsuite/libvtv.cc/event.h
Caroline Tice 41e96dc8f0 Update libvtv testsuite so that most of the tests now run under
the dejagnu test harness.

From-SVN: r202373
2013-09-08 16:35:14 -07:00

30 lines
418 B
C++

class RefCountedBase {
protected:
bool derefBase()
{
return true;
}
};
template<typename T> class RefCounted : public RefCountedBase {
public:
void deref()
{
if (derefBase())
delete static_cast<T*>(this);
}
protected:
// RefCounted() { }
~RefCounted()
{
}
};
class Event : public RefCounted<Event> {
public:
Event();
virtual ~Event();
};