fix: remove a lot of trivial warnings
This commit is contained in:
parent
a16298c58b
commit
84148824e0
83 changed files with 218 additions and 196 deletions
|
|
@ -54,7 +54,11 @@ class moeoQuickUnboundedArchiveIndex : public moeoArchiveIndex < MOEOT >
|
|||
* equivalent to "number one element should be on top of number two element" in the list by looking to the first obj
|
||||
*/
|
||||
struct CompareByFirst
|
||||
#if __cplusplus >= 201103L
|
||||
: std::function< bool(entree, entree) > {
|
||||
#else
|
||||
: std::binary_function< bool, entree, entree > {
|
||||
#endif
|
||||
bool operator ()(
|
||||
const entree& elem1,
|
||||
const entree& elem2
|
||||
|
|
@ -71,7 +75,11 @@ class moeoQuickUnboundedArchiveIndex : public moeoArchiveIndex < MOEOT >
|
|||
* equivalent to "number one element should be on top of number two element" in the list by looking to the 2nd obj
|
||||
*/
|
||||
struct CompareByLast
|
||||
#if __cplusplus >= 201103L
|
||||
: std::function< bool(entree, entree) > {
|
||||
#else
|
||||
: std::binary_function< bool, entree, entree > {
|
||||
#endif
|
||||
bool operator ()(
|
||||
const entree& elem1,
|
||||
const entree& elem2
|
||||
|
|
@ -87,7 +95,11 @@ class moeoQuickUnboundedArchiveIndex : public moeoArchiveIndex < MOEOT >
|
|||
|
||||
|
||||
struct CompareByLast2
|
||||
#if __cplusplus >= 201103L
|
||||
: std::function< bool(MOEOT, MOEOT) > {
|
||||
#else
|
||||
: std::binary_function< bool, MOEOT, MOEOT > {
|
||||
#endif
|
||||
bool operator ()(
|
||||
const MOEOT& elem1,
|
||||
const MOEOT& elem2
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class moeoAchievementFitnessAssignment : public moeoScalarFitnessAssignment < MO
|
|||
* @param _pop the population
|
||||
* @param _objVec the objective vector
|
||||
*/
|
||||
void updateByDeleting(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec)
|
||||
void updateByDeleting(eoPop < MOEOT > & /*_pop*/, ObjectiveVector & /*_objVec*/)
|
||||
{
|
||||
// nothing to do ;-)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,12 +127,12 @@ class moeoAchievementScalarizingFunctionMetricFitnessAssignment : public moeoSin
|
|||
* @param _pop the populing
|
||||
* @param _objVec the objective vector
|
||||
*/
|
||||
void updateByDeleting(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec){}
|
||||
void updateByDeleting(eoPop < MOEOT > & /*_pop*/, ObjectiveVector & /*_objVec*/){}
|
||||
|
||||
private:
|
||||
|
||||
class DummyEval: public eoEvalFunc<MOEOT>{
|
||||
void operator()(MOEOT &moeo){
|
||||
void operator()(MOEOT &/*moeo*/){
|
||||
}
|
||||
} defaultEval;
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ class moeoAugmentedAchievementScalarizingFunctionMetricFitnessAssignment : publi
|
|||
* @param _pop the populing
|
||||
* @param _objVec the objective vector
|
||||
*/
|
||||
void updateByDeleting(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec)
|
||||
void updateByDeleting(eoPop < MOEOT > & /*_pop*/, ObjectiveVector & /*_objVec*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -146,7 +146,7 @@ class moeoAugmentedAchievementScalarizingFunctionMetricFitnessAssignment : publi
|
|||
private:
|
||||
|
||||
class DummyEval: public eoEvalFunc<MOEOT>{
|
||||
void operator()(MOEOT &moeo){
|
||||
void operator()(MOEOT &/*moeo*/){
|
||||
}
|
||||
} defaultEval;
|
||||
|
||||
|
|
|
|||
|
|
@ -124,12 +124,12 @@ class moeoAugmentedWeightedChebychevMetricFitnessAssignment : public moeoSingleO
|
|||
* @param _pop the population
|
||||
* @param _objVec the objective vector
|
||||
*/
|
||||
void updateByDeleting(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec){}
|
||||
void updateByDeleting(eoPop < MOEOT > & /*_pop*/, ObjectiveVector & /*_objVec*/){}
|
||||
|
||||
private:
|
||||
|
||||
class DummyEval: public eoEvalFunc<MOEOT>{
|
||||
void operator()(MOEOT &moeo){
|
||||
void operator()(MOEOT &/*moeo*/){
|
||||
}
|
||||
} defaultEval;
|
||||
|
||||
|
|
|
|||
|
|
@ -129,12 +129,12 @@ class moeoWeightedChebychevMetricFitnessAssignment : public moeoSingleObjectiviz
|
|||
* @param _pop the population
|
||||
* @param _objVec the objective vector
|
||||
*/
|
||||
void updateByDeleting(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec){}
|
||||
void updateByDeleting(eoPop < MOEOT > & /*_pop*/, ObjectiveVector & /*_objVec*/){}
|
||||
|
||||
private:
|
||||
|
||||
class DummyEval: public eoEvalFunc<MOEOT>{
|
||||
void operator()(MOEOT &moeo){
|
||||
void operator()(MOEOT &/*moeo*/){
|
||||
}
|
||||
} defaultEval;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue