From 935910f2f4e6d932b14cb210b2fa8f37c72e536b Mon Sep 17 00:00:00 2001 From: evomarc Date: Mon, 4 Apr 2005 20:41:06 +0000 Subject: [PATCH] Small upgrade for gcc 3.3 (I guess no-one is using those files, right?) --- eo/src/do/make_algo_pareto.h | 2 +- eo/src/do/make_checkpoint_pareto.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eo/src/do/make_algo_pareto.h b/eo/src/do/make_algo_pareto.h index 726fa834..6231e4fe 100644 --- a/eo/src/do/make_algo_pareto.h +++ b/eo/src/do/make_algo_pareto.h @@ -49,7 +49,7 @@ public: struct WorthPair : public std::pair { - bool operator<(const WorthPair& other) const { return other.first < first; } + bool operator<(const WorthPair& other) const { return other.first < this->first; } }; void operator()(eoPop& _parents, eoPop& _offspring) diff --git a/eo/src/do/make_checkpoint_pareto.h b/eo/src/do/make_checkpoint_pareto.h index d14d40da..b79f314f 100644 --- a/eo/src/do/make_checkpoint_pareto.h +++ b/eo/src/do/make_checkpoint_pareto.h @@ -147,8 +147,8 @@ eoCheckPoint& do_make_checkpoint_pareto(eoParser& _parser, eoState& _state, #else char s[1024]; std::ostrstream os2(s, 1022); - os << "Obj. " << obj2 << std::ends; - fStat = new eoMOFitnessStat(obj, s); + os2 << "Obj. " << obj2 << std::ends; + fStat = new eoMOFitnessStat(obj2, s); #endif _state.storeFunctor(fStat); bStat[obj2]=true;