debug for visual studio
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1358 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
497c64606f
commit
b75d71e073
1 changed files with 50 additions and 45 deletions
|
|
@ -197,10 +197,15 @@ class moeoHyperVolumeMetric : public moeoVectorUnaryMetric < ObjectiveVector , d
|
||||||
* @param _j index of the second element to swap
|
* @param _j index of the second element to swap
|
||||||
*/
|
*/
|
||||||
void swap(std::vector< std::vector<double> >& _front, unsigned int _i, unsigned int _j){
|
void swap(std::vector< std::vector<double> >& _front, unsigned int _i, unsigned int _j){
|
||||||
_front.push_back(_front[_i]);
|
std::vector<double> tmp;
|
||||||
_front[_i]= _front[_j];
|
tmp=_front[_i];
|
||||||
_front[_j]=_front.back();
|
_front[_i]=_front[_j];
|
||||||
_front.pop_back();
|
_front[_j]=tmp;
|
||||||
|
//another way (don't work on visual studio)
|
||||||
|
// _front.push_back(_front[_i]);
|
||||||
|
// _front[_i]= _front[_j];
|
||||||
|
// _front[_j]=_front.back();
|
||||||
|
// _front.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue