added some typename statements to make it compile without warnings under gcc3.2
This commit is contained in:
parent
5054418a66
commit
c175b152bc
10 changed files with 20 additions and 20 deletions
|
|
@ -98,7 +98,7 @@ typedef typename EOT::Fitness Fitness;
|
|||
/// helper struct for comparing on pairs
|
||||
// compares the scores
|
||||
// uses the fitness if scores are equals ????
|
||||
typedef pair<float, eoPop<EOT>::iterator> EPpair;
|
||||
typedef pair<float, typename eoPop<EOT>::iterator> EPpair;
|
||||
struct Cmp {
|
||||
bool operator()(const EPpair a, const EPpair b) const
|
||||
{
|
||||
|
|
@ -175,7 +175,7 @@ class eoLinearTruncate : public eoReduce<EOT>
|
|||
throw std::logic_error("eoLinearTruncate: Cannot truncate to a larger size!\n");
|
||||
for (unsigned i=0; i<oldSize - _newsize; i++)
|
||||
{
|
||||
eoPop<EOT>::iterator it = _newgen.it_worse_element();
|
||||
typename eoPop<EOT>::iterator it = _newgen.it_worse_element();
|
||||
_newgen.erase(it);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue