Chenges to EO
This commit is contained in:
parent
6e9ddda69c
commit
2cafee6bc6
2 changed files with 9 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Reference in a new issue