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:
boufaras 2010-10-18 10:31:44 +00:00
commit f47bc32510

View file

@ -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();
}