Replace unsigned int tmp;
by EOT tmp(1); & replace code of moveBack by a simple call of move git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1966 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ab74162af2
commit
f47bc32510
1 changed files with 3 additions and 3 deletions
|
|
@ -44,10 +44,10 @@ public:
|
|||
* @param _solution the solution to move
|
||||
*/
|
||||
virtual void move(EOT& _solution) {
|
||||
unsigned int tmp;
|
||||
tmp = _solution[indices.first];
|
||||
EOT tmp(1);
|
||||
tmp[0] = _solution[indices.first];
|
||||
_solution[indices.first] = _solution[indices.second];
|
||||
_solution[indices.second] = tmp;
|
||||
_solution[indices.second] = tmp[0];
|
||||
_solution.invalidate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue