The problem is :
I am using overloaded new for getting the memory from the big chunk of
memory.
Now , when I use overloaded new[], it is assigning addr + some bytes
to the obj pointer.
MyClass *obj = new(POOL_TYPE) MyClass[3];
where new[] is overloaded like
void* operator new[](unsigned int sz, int POOL) {
..
..
..
MyMalloc (sz, POOL);
..
}
Even though address returned by new[] was 0x0074, but 0x0078 gets
assigned to obj in case of windows and
0x007c gets assigned in case of g++.
While calling overloaded delete :
operator delete[] (ptr , POOL);
I need to pass the ptr which was returned by MyMalloc (), not the one
updted with some additional bytes.
This is because during free I need to deal with the corresponding
pointers by myself.
So, I need to know what is the standard being followed for this
reserved memory in case of new[].