Back port post gcc 3.4.2 fixup from x11-wm/boxtools.

Requested by:	Marco Trentini <mark at remotelab dot org>
This commit is contained in:
Clive Lin 2004-08-01 12:59:18 +00:00
parent b36ee793ac
commit 92e618dfd5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115204

View File

@ -0,0 +1,15 @@
--- src/Timer.hh~ Sun Aug 1 17:13:29 2004
+++ src/Timer.hh Sun Aug 1 17:14:13 2004
@@ -98,9 +98,10 @@
~_timer_queue(void) {}
void release(const _Tp& value) {
- c.erase(std::remove(c.begin(), c.end(), value), c.end());
+ _Base::c.erase(std::remove(_Base::c.begin(), _Base::c.end(), value),
+ _Base::c.end());
// after removing the item we need to make the heap again
- std::make_heap(c.begin(), c.end(), comp);
+ std::make_heap(_Base::c.begin(), _Base::c.end(), _Base::comp);
}
bool empty(void) const { return _Base::empty(); }
size_t size(void) const { return _Base::size(); }