Correct templatized types across ObjectiveVector-dependant code

This commit is contained in:
Johann Dreo 2013-06-07 11:52:50 +02:00 committed by LPTK
commit 206f12e558
4 changed files with 13 additions and 11 deletions

View file

@ -154,7 +154,7 @@ class moeoExpBinaryIndicatorBasedFitnessAssignment : public moeoBinaryIndicatorB
*/
void setup(const eoPop < MOEOT > & _pop)
{
double min, max;
typename MOEOT::ObjectiveVector::Type min, max;
for (unsigned int i=0; i<ObjectiveVector::Traits::nObjectives(); i++)
{
min = _pop[0].objectiveVector()[i];