Code:
void* Point::operator new (size_t bytes)
{
Block *res = freeList;
return used < maxPoints
? &(blocks[used++])
: (res == 0 ? 0
: (freeList = freeList->next, res));
}
void Point::operator delete (void *ptr, size_t bytes)
{
((Block*) ptr)->next = freeList;
freeList = (Block*) ptr;
}
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.
EDIT: Sorry about the little :o's, they are really a colon then a little o :rolleyes: