I have a base class:
class A {
protected:
static void* operator new (size_t size);
void operator delete (void *p);
public:
void Delete();
}
and then a subclass that calls Delete(), here are those function definitions (in a nutshell):
void* A::operator new (size_t size) {
return AllocMem(size);
}
void A::operator delete (void...