Suppress warnings when compiling MOEO functions returning const
When compiling whith --Wignored-qualifiers, g++ no more warns about ignoring const in methods *returning* a const, which isn't logical.
This commit is contained in:
parent
b06250dc39
commit
bda48533e8
14 changed files with 36 additions and 37 deletions
|
|
@ -64,7 +64,7 @@ class moeoGDominanceObjectiveVectorComparator : public moeoObjectiveVectorCompar
|
|||
* @param _objectiveVector1 the first objective vector
|
||||
* @param _objectiveVector2 the second objective vector
|
||||
*/
|
||||
const bool operator()(const ObjectiveVector & _objectiveVector1, const ObjectiveVector & _objectiveVector2)
|
||||
bool operator()(const ObjectiveVector & _objectiveVector1, const ObjectiveVector & _objectiveVector2)
|
||||
{
|
||||
unsigned int flag1 = flag(_objectiveVector1);
|
||||
unsigned int flag2 = flag(_objectiveVector2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue