Template Fitness dans les Neighbor enlevés. On le déduit de EOT.

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1734 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-04-08 10:12:00 +00:00
commit 67a701f9ff
17 changed files with 51 additions and 56 deletions

View file

@ -40,21 +40,18 @@
/**
* A Ordered Neighborhood
*/
template< class N >
class moOrderNeighborhood : public moIndexNeighborhood<N>
template< class Neighbor >
class moOrderNeighborhood : public moIndexNeighborhood<Neighbor>
{
public:
/**
* Define type of a solution corresponding to Neighbor
*/
typedef N Neighbor;
typedef typename Neighbor::EOT EOT;
using moIndexNeighborhood<Neighbor>::neighborhoodSize;
/**
* Constructor
* @param _neighborhoodSize the size of the neighborhood