// May 09, 2002: Fixed bug in Compare that caused longevities to act backwards.

//      Credit due to Scott McDonald.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@23 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
aandrei 2002-05-10 00:59:22 +00:00
parent b1b73884a5
commit 3d5bb2fce7

View file

@ -43,7 +43,7 @@ namespace Loki
static bool Compare(const LifetimeTracker* lhs, static bool Compare(const LifetimeTracker* lhs,
const LifetimeTracker* rhs) const LifetimeTracker* rhs)
{ {
return rhs->longevity_ > lhs->longevity_; return lhs->longevity_ > rhs->longevity_;
} }
private: private:
@ -441,6 +441,8 @@ namespace Loki
// Eike Petersen // Eike Petersen
// March 08, 2002: moved the assignment to pTrackerArray in SetLongevity to fix // March 08, 2002: moved the assignment to pTrackerArray in SetLongevity to fix
// exception safety issue. Credit due to Kari Hoijarvi // exception safety issue. Credit due to Kari Hoijarvi
// May 09, 2002: Fixed bug in Compare that caused longevities to act backwards.
// Credit due to Scott McDonald.
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#endif // SINGLETON_INC_ #endif // SINGLETON_INC_