Small upgrade for gcc 3.3 (I guess no-one is using those files, right?)
This commit is contained in:
parent
a17e266c46
commit
935910f2f4
2 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ public:
|
||||||
|
|
||||||
struct WorthPair : public std::pair<WorthT, const EOT*>
|
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)
|
void operator()(eoPop<EOT>& _parents, eoPop<EOT>& _offspring)
|
||||||
|
|
|
||||||
|
|
@ -147,8 +147,8 @@ eoCheckPoint<EOT>& do_make_checkpoint_pareto(eoParser& _parser, eoState& _state,
|
||||||
#else
|
#else
|
||||||
char s[1024];
|
char s[1024];
|
||||||
std::ostrstream os2(s, 1022);
|
std::ostrstream os2(s, 1022);
|
||||||
os << "Obj. " << obj2 << std::ends;
|
os2 << "Obj. " << obj2 << std::ends;
|
||||||
fStat = new eoMOFitnessStat<EOT>(obj, s);
|
fStat = new eoMOFitnessStat<EOT>(obj2, s);
|
||||||
#endif
|
#endif
|
||||||
_state.storeFunctor(fStat);
|
_state.storeFunctor(fStat);
|
||||||
bStat[obj2]=true;
|
bStat[obj2]=true;
|
||||||
|
|
|
||||||
Reference in a new issue