Changes to eo and opsel to quash compiling bugs
This commit is contained in:
parent
e20fb6c7aa
commit
b5cb78b70f
1 changed files with 1 additions and 9 deletions
10
eo/src/EO.h
10
eo/src/EO.h
|
|
@ -77,7 +77,7 @@ public:
|
||||||
/** Returns true if
|
/** Returns true if
|
||||||
@return true if the fitness is higher
|
@return true if the fitness is higher
|
||||||
*/
|
*/
|
||||||
bool operator<(const EO& _eo2) { return fitness() < _eo2.fitness();}
|
bool operator<(const EO& _eo2) const { return fitness() < _eo2.fitness();}
|
||||||
|
|
||||||
/// Methods inherited from eoObject
|
/// Methods inherited from eoObject
|
||||||
//@{
|
//@{
|
||||||
|
|
@ -117,12 +117,4 @@ private:
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
template<class T> bool operator<(const EO<T>& _eo1, const EO<T>& _eo2)
|
|
||||||
{
|
|
||||||
return _eo1.fitness() < _eo2.fitness();
|
|
||||||
}
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#endif EO_H
|
#endif EO_H
|
||||||
|
|
|
||||||
Reference in a new issue