Small upgrade for gcc 3.3 (I guess no-one is using those files, right?)

This commit is contained in:
evomarc 2005-04-04 20:41:06 +00:00
commit 935910f2f4
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ public:
struct WorthPair : public std::pair<WorthT, const EOT*>
{
bool operator<(const WorthPair& other) const { return other.first < first; }
bool operator<(const WorthPair& other) const { return other.first < this->first; }
};
void operator()(eoPop<EOT>& _parents, eoPop<EOT>& _offspring)

View file

@ -147,8 +147,8 @@ eoCheckPoint<EOT>& 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<EOT>(obj, s);
os2 << "Obj. " << obj2 << std::ends;
fStat = new eoMOFitnessStat<EOT>(obj2, s);
#endif
_state.storeFunctor(fStat);
bStat[obj2]=true;