diff --git a/eo/src/eoVector.h b/eo/src/eoVector.h index a5749335..a3a63453 100644 --- a/eo/src/eoVector.h +++ b/eo/src/eoVector.h @@ -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(), std::vector(size, value) + eoVector(unsigned _size = 0, GeneType _value = GeneType()) + : EO(), std::vector(_size, _value) {} /// copy ctor abstracting from the FitT diff --git a/eo/src/eoVectorParticle.h b/eo/src/eoVectorParticle.h index 21be1dac..b7eadc5c 100644 --- a/eo/src/eoVectorParticle.h +++ b/eo/src/eoVectorParticle.h @@ -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) { }