Coreected a cut-and-paste bug :-(

This commit is contained in:
evomarc 2001-05-18 17:46:33 +00:00
commit 8e5e9d14cf

View file

@ -93,16 +93,13 @@ eoAlgo<EOT> & do_make_algo_scalar(eoParameterLoader& _parser, eoState& _state, e
select = new eoStochTournamentSelect<EOT>(p); select = new eoStochTournamentSelect<EOT>(p);
} }
else if (ppSelect.first == string("Sequential")) // one after the other else if (ppSelect.first == string("Sequential")) // one after the other
{
if (ppSelect.second.size() == 0) // no argument -> default = ordered
select = new eoSequentialSelect<EOT>;
else
{ {
bool b; bool b;
istrstream is(ppSelect.second[0].c_str()); if (ppSelect.second.size() == 0) // no argument -> default = ordered
is >> b; b=true;
select = new eoStochTournamentSelect<EOT>(b); else
} b = !(ppSelect.second[0] == string("unordered"));
select = new eoSequentialSelect<EOT>(b);
} }
else if (ppSelect.first == string("Roulette")) // no argument (yet) else if (ppSelect.first == string("Roulette")) // no argument (yet)
{ {