I have an requirement to overload the delete operator in C++, but it should also accept the sizeof() the object that is to be deleted. Actually I am trying to built a custom memory allocator and deallocator like a pool, which makes me to overload the delete operator.
Small example of the problem is

Code:
#include <new>
#include <iostream>
using namespace std;
void operator delete(void* p)
{
...