diff --git a/eo/src/EO.h b/eo/src/EO.h index fb54364b..84552dad 100644 --- a/eo/src/EO.h +++ b/eo/src/EO.h @@ -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 bool operator<(const EO& eo1, const EO& eo2) +template bool operator<(const EO& _eo1, const EO& _eo2) { - return eo1.fitness() < eo2.fitness(); + return _eo1.fitness() < _eo2.fitness(); } //----------------------------------------------------------------------------- diff --git a/eo/src/Makefile.am b/eo/src/Makefile.am index ab0d64da..f22bc979 100644 --- a/eo/src/Makefile.am +++ b/eo/src/Makefile.am @@ -5,6 +5,7 @@ ############################################################################### lib_LTLIBRARIES = libeo.la -libeo_la_SOURCES = eoObject.cpp eoPersistent.cpp eoPrintable.cpp +libeo_la_SOURCES = +libeo_la_SOURCES = eoPersistent.cpp eoPrint eoPersistent.cpp eoPrintable.cpp libeoincdir = $(includedir)/eo libeoinc_HEADERS = eo EO.h eoDup.h eoMultiMonOp.h eoPop.h eoUniform.h eoESChrom.h eoNegExp.h eoProblem.h eoVector.h eoFitness.h eoNormal.h eoRnd.h eoXOver2.h eo1d.h eoID.h eoObject.h eoString.h eoAged.h eoKill.h eoOp.h eoTranspose.h eoBin.h