corrected contructor parameter names. All tests OK

This commit is contained in:
tlegrand 2008-01-16 08:14:18 +00:00
commit 012c71e8fb
2 changed files with 4 additions and 4 deletions

View file

@ -55,8 +55,8 @@ public:
@param size Length of vector (default is 0)
@param value Initial value of all elements (default is default value of type GeneType)
*/
eoVector(unsigned size = 0, GeneType value = GeneType())
: EO<FitT>(), std::vector<GeneType>(size, value)
eoVector(unsigned _size = 0, GeneType _value = GeneType())
: EO<FitT>(), std::vector<GeneType>(_size, _value)
{}
/// copy ctor abstracting from the FitT

View file

@ -64,8 +64,8 @@ public:
* @param velocity
* @param bestPositions
*/
eoVectorParticle (unsigned _size = 0,PositionType position = PositionType (), VelocityType velocity = VelocityType (), PositionType bestPositions = PositionType ()):PO < FitT > (),std::vector < PositionType > (_size, position), bestPositions (_size, bestPositions), velocities (_size,
velocity)
eoVectorParticle (unsigned _size = 0,PositionType _position = PositionType (), VelocityType _velocity = VelocityType (), PositionType _bestPositions = PositionType ()):PO < FitT > (),std::vector < PositionType > (_size, _position), bestPositions (_size, _bestPositions), velocities (_size,
_velocity)
{
}