Changes to eo and opsel to quash compiling bugs

This commit is contained in:
jmerelo 1999-02-03 18:34:20 +00:00
commit b5cb78b70f

View file

@ -77,7 +77,7 @@ public:
/** Returns true if
@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
//@{
@ -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