Makes MOEO::objectiveVector(int) const

Const correctness demands that read-only accessors are made const, or this
could discards qualifiers.
This commit is contained in:
Johann Dreo 2013-02-22 14:27:27 +01:00
commit 9e56de7a74

View file

@ -155,7 +155,7 @@ class MOEO : public EO < MOEOObjectiveVector >
* Gets one dimension of the objective vector
* @param _dim dimension of the objective vector to set
*/
typename ObjectiveVector::Type objectiveVector(unsigned int _dim)
typename ObjectiveVector::Type objectiveVector(unsigned int _dim) const
{
return objectiveVectorValue[_dim];
}