Chenges to EO

This commit is contained in:
jmerelo 1999-02-03 17:26:52 +00:00
commit 2cafee6bc6
2 changed files with 9 additions and 3 deletions

View file

@ -74,6 +74,11 @@ public:
*/
bool invalid() const { return invalidFitness; }
/** Returns true if
@return true if the fitness is higher
*/
bool operator<(const EO& _eo2) { return fitness() < _eo2.fitness();}
/// Methods inherited from eoObject
//@{
@ -112,9 +117,9 @@ private:
//-----------------------------------------------------------------------------
template<class T> bool operator<(const EO<T>& eo1, const EO<T>& eo2)
template<class T> bool operator<(const EO<T>& _eo1, const EO<T>& _eo2)
{
return eo1.fitness() < eo2.fitness();
return _eo1.fitness() < _eo2.fitness();
}
//-----------------------------------------------------------------------------