From b5cb78b70f8ffd8ee61230534cd0455fa704b9b8 Mon Sep 17 00:00:00 2001 From: jmerelo Date: Wed, 3 Feb 1999 18:34:20 +0000 Subject: [PATCH] Changes to eo and opsel to quash compiling bugs --- eo/src/EO.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/eo/src/EO.h b/eo/src/EO.h index 84552dadb..e9ff84e75 100644 --- a/eo/src/EO.h +++ b/eo/src/EO.h @@ -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 bool operator<(const EO& _eo1, const EO& _eo2) -{ - return _eo1.fitness() < _eo2.fitness(); -} - -//----------------------------------------------------------------------------- - - #endif EO_H