Comparison unsigned and signed int corrected in spectrally

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1437 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jboisson 2009-02-13 14:55:07 +00:00
commit 98d13fb081

View file

@ -96,7 +96,7 @@ class moeoFrontByFrontCrowdingDiversityAssignment : public moeoCrowdingDiversity
// due to intensive sort operations for this diversity assignment,
// it is more efficient to perform sorts using only pointers to the
// population members in order to avoid copy of individuals
for(int i=0; i< _pop.size(); i++) sortedptrpop[i] = & (_pop[i]);
for(unsigned int i=0; i< _pop.size(); i++) sortedptrpop[i] = & (_pop[i]);
//sort the pointers to population members
moeoPtrComparator<MOEOT> cmp2( fitnessComparator);
std::sort(sortedptrpop.begin(), sortedptrpop.end(), cmp2);