// untyped destructor of elements - must be overriden
virtual void Free(void *) = 0;
// untyped copy constructor of elements - must be overriden
virtual void *Copy(const void *) const = 0;
// untyped destructor of elements - must be overriden
virtual void Free(void *) = 0;
// untyped copy constructor of elements - must be overriden
virtual void *Copy(const void *) const = 0;
- wxVectorBase() : m_objects(0), m_allocsize(16), m_size(0), m_capacity(0) {}
+ wxVectorBase() : m_allocsize(16), m_size(0), m_capacity(0), m_objects(0) {}
+ virtual ~wxVectorBase() {} // calm down GCC
+
-#define WX_DECLARE_VECTOR(obj, cls)\
-class cls : public wxVectorBase\
+#define _WX_DECLARE_VECTOR(obj, cls, exp)\
+class exp cls : public wxVectorBase\
{\
WX_DECLARE_VECTORBASE(obj, cls);\
public:\
void push_back(const obj& o)\
{\
{\
WX_DECLARE_VECTORBASE(obj, cls);\
public:\
void push_back(const obj& o)\
{\