Hi all,
I'm having problems using the DefaultElementComparator. I'm not able to make the code to call the operator<(). Here is how I add a sorted Task
DefaultElementComparator<const Task*> sorter; int index = _tasks.addSorted(sorter, task);
_task is a OwnedArray. When I want override the operator I do like this:
//task.h: friend bool operator<(const Task& task1, const Task& task2); //task.cpp: bool operator<(const Task& task1, const Task& task2) { return task1._expectedTimestamp < task2._expectedTimestamp; }
But the overide function is never executed :( Can anybody help me??
Thanks!!