removed unconsitent reference in "eoWeakElitistReplacement" (const EOT oldChamp)
This commit is contained in:
parent
a290987e89
commit
860cb372b0
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ public :
|
||||||
/// do replacement
|
/// do replacement
|
||||||
void operator()(eoPop<EOT>& _pop, eoPop<EOT>& _offspring)
|
void operator()(eoPop<EOT>& _pop, eoPop<EOT>& _offspring)
|
||||||
{
|
{
|
||||||
const EOT & oldChamp = _pop.best_element();
|
const EOT oldChamp = _pop.best_element();
|
||||||
replace(_pop, _offspring); // "normal" replacement, parents are the new
|
replace(_pop, _offspring); // "normal" replacement, parents are the new
|
||||||
if (_pop.best_element() < oldChamp) // need to do something
|
if (_pop.best_element() < oldChamp) // need to do something
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue