}
bool operator<(ScheduledFunc const& b) const {
+ // Earlier-scheduled things must be *higher* priority
+ // in the max-based std::priority_queue
if (time == b.time)
- return ordinal < b.ordinal;
- return time < b.time;
+ return ordinal > b.ordinal;
+ return time > b.time;
}
Func&& moveOutFunc() const {