some template 'Fitness' missing in some moNeighbor

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2202 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
liefooga 2011-03-30 07:04:55 +00:00
commit 8e638c974e
3 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ public:
* @param _neighbor a neighbor * @param _neighbor a neighbor
* @return if _neighbor and this one are equals * @return if _neighbor and this one are equals
*/ */
virtual bool equals(moNeighbor<EOT>& _neighbor) { virtual bool equals(moNeighbor<EOT,Fitness> & _neighbor) {
return false; return false;
} }

View file

@ -119,7 +119,7 @@ public:
* @param _neighbor a neighbor * @param _neighbor a neighbor
* @return if _neighbor and this one are equals * @return if _neighbor and this one are equals
*/ */
virtual bool equals(moBitsNeighbor<EOT>& _neighbor) { virtual bool equals(moBitsNeighbor<EOT,Fitness> & _neighbor) {
if (nBits != _neighbor.nBits) if (nBits != _neighbor.nBits)
return false; return false;
else { else {

View file

@ -83,7 +83,7 @@ public:
* @param _neighbor a neighbor * @param _neighbor a neighbor
* @return if _neighbor and this one are equals * @return if _neighbor and this one are equals
*/ */
virtual bool equals(moSwapNeighbor<EOT>& _neighbor) { virtual bool equals(moSwapNeighbor<EOT,Fitness>& _neighbor) {
unsigned f, s; unsigned f, s;
_neighbor.getIndices(f, s); _neighbor.getIndices(f, s);
return ((indices.first == f) && (indices.second == s) || (indices.first return ((indices.first == f) && (indices.second == s) || (indices.first