From 8e638c974ee2eee7d13c2b6c6852e28719dd5b8c Mon Sep 17 00:00:00 2001 From: liefooga Date: Wed, 30 Mar 2011 07:04:55 +0000 Subject: [PATCH] some template 'Fitness' missing in some moNeighbor git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2202 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/neighborhood/moNeighbor.h | 2 +- trunk/paradiseo-mo/src/problems/bitString/moBitsNeighbor.h | 2 +- trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/paradiseo-mo/src/neighborhood/moNeighbor.h b/trunk/paradiseo-mo/src/neighborhood/moNeighbor.h index 9d69bee1e..56bbf911b 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moNeighbor.h +++ b/trunk/paradiseo-mo/src/neighborhood/moNeighbor.h @@ -108,7 +108,7 @@ public: * @param _neighbor a neighbor * @return if _neighbor and this one are equals */ - virtual bool equals(moNeighbor& _neighbor) { + virtual bool equals(moNeighbor & _neighbor) { return false; } diff --git a/trunk/paradiseo-mo/src/problems/bitString/moBitsNeighbor.h b/trunk/paradiseo-mo/src/problems/bitString/moBitsNeighbor.h index ef00db410..82c03e816 100644 --- a/trunk/paradiseo-mo/src/problems/bitString/moBitsNeighbor.h +++ b/trunk/paradiseo-mo/src/problems/bitString/moBitsNeighbor.h @@ -119,7 +119,7 @@ public: * @param _neighbor a neighbor * @return if _neighbor and this one are equals */ - virtual bool equals(moBitsNeighbor& _neighbor) { + virtual bool equals(moBitsNeighbor & _neighbor) { if (nBits != _neighbor.nBits) return false; else { diff --git a/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h b/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h index 1d1c7d9db..e940c836c 100644 --- a/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h +++ b/trunk/paradiseo-mo/src/problems/permutation/moSwapNeighbor.h @@ -83,7 +83,7 @@ public: * @param _neighbor a neighbor * @return if _neighbor and this one are equals */ - virtual bool equals(moSwapNeighbor& _neighbor) { + virtual bool equals(moSwapNeighbor& _neighbor) { unsigned f, s; _neighbor.getIndices(f, s); return ((indices.first == f) && (indices.second == s) || (indices.first