Ok, this is unintelligible to me.
I seriously hate to be a whiny little newbie, but this is just weird. I understand overloading in general, but I really don't recognize most of the variables in this as coming from anywhere.
void* Point::operator new (size_t bytes)
Block *res = freeList;
return used < maxPoints
: (res == 0 ? 0
: (freeList = freeList->next, res));
void Point::operator delete (void *ptr, size_t bytes)
((Block*) ptr)->next = freeList;
freeList = (Block*) ptr;
EDIT: Sorry about the little :o's, they are really a colon then a little o :rolleyes:
I get what you mean, but...
They don't appear to be. What's odd to me is the very concept of overloading NEW. New strikes me as too basic to overload. That's what confuses me.