give access to _timeout for shitty compilers in TimerCompare
authorDana Jansens <danakj@orodu.net>
Thu, 23 Jan 2003 02:24:19 +0000 (02:24 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 23 Jan 2003 02:24:19 +0000 (02:24 +0000)
otk/timer.hh

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