From f47bc32510463af9f3ae10943486f1e725bf8678 Mon Sep 17 00:00:00 2001 From: boufaras Date: Mon, 18 Oct 2010 10:31:44 +0000 Subject: [PATCH] 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 --- .../paradiseo-mo/src/problems/permutation/moSwapNeighbor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h b/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h index 2fa6d2054..eb988cfed 100644 --- a/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h +++ b/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h @@ -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(); }