give access to _timeout for shitty compilers in TimerCompare

This commit is contained in:
Dana Jansens 2003-01-23 02:24:19 +00:00
parent 8152d45329
commit c4427cc1f3

View file

@ -42,6 +42,7 @@ private:
return timercmp(&a->_timeout, &b->_timeout, >); return timercmp(&a->_timeout, &b->_timeout, >);
} }
}; };
friend struct TimerCompare; // give access to _timeout for shitty compilers
typedef typedef
std::priority_queue<Timer*, std::vector<Timer*>, TimerCompare> TimerQ; std::priority_queue<Timer*, std::vector<Timer*>, TimerCompare> TimerQ;