I've written a custom memory management system similar to this one http://www.gamedev.net/page/resources/_/technical/general-programming/c-custom-memory-allocation-r3010
Right now I'm trying to make it so that anything of a certain class has allocations and deallocations handled by that memory manager. But since operator new and operator delete are static, there's no way to keep a pointer to the allocater around so that the allocater can free whatever it allocated in the first place when delete was called. What would be the best way to hook new and delete into my memory allocater system?