* fixed regression with gcc 4.7

This commit is contained in:
Caner Candan 2012-06-23 13:39:17 +02:00
commit d44a696e21
4 changed files with 6 additions and 4 deletions

View file

@ -212,7 +212,7 @@ public:
//! Print term values and descriptions
void printAll(std::ostream& os) const {
for (size_type i=0; i < size(); ++i )
os << FitnessTraits::getDescription(i) << " = " << operator[](i) << " ";
os << FitnessTraits::getDescription(i) << " = " << this->operator[](i) << " ";
}
//! Comparison, using less by default

View file

@ -94,7 +94,7 @@ public:
while (size() > _size)
{
back() = operator[](size()-2);
back() = this->operator[](size()-2);
}
}
@ -150,7 +150,7 @@ public:
v[i] = node;
}
parse_tree<Node> tmp(v.begin(), v.end());
swap(tmp);
this->swap(tmp);
/*
* old code which caused problems for paradisEO

View file

@ -66,7 +66,7 @@ SET (TEST_LIST
t-eoLogger
t-eoIQRStat
t-eoParallel
t-openmp
#t-openmp # does not work anymore since functions used in this test were removed from EO
#t-eoDualFitness
t-eoParser
)

View file

@ -39,6 +39,8 @@ Caner Candan <caner.candan@thalesgroup.com>
#include <omp.h>
#include <unistd.h>
#include "real_value.h"
//-----------------------------------------------------------------------------