/**
* List implementation with dump memory.
*/
-template<class T> class DumpList : protected std::list<T, DumpMemoryAllocator<T> > {
+template<class T> class DumpList :
+ public DumpClass,
+ protected std::list<T, DumpMemoryAllocator<T> > {
public:
virtual ~DumpList() {}
using std::list<T, DumpMemoryAllocator<T> >::remove;
using std::list<T, DumpMemoryAllocator<T> >::rend;
using std::list<T, DumpMemoryAllocator<T> >::size;
-
- void* operator new(size_t size) {
- return DumpMemory::allocate(size);
- }
-
- void operator delete(void* p) {}
};
#else
* c-basic-offset: 4
* tab-width: 4
* End:
+ * vim:noexpandtab:sw=4:ts=4:
*/