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:
parent
c185dbdb4c
commit
98d13fb081
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue