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:
parent
6cd61e2e2c
commit
9e56de7a74
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class MOEO : public EO < MOEOObjectiveVector >
|
||||||
* Gets one dimension of the objective vector
|
* Gets one dimension of the objective vector
|
||||||
* @param _dim dimension of the objective vector to set
|
* @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];
|
return objectiveVectorValue[_dim];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue