X-Git-Url: https://git.dlugolecki.net.pl/?p=genetic.git;a=blobdiff_plain;f=include%2Fcondition%2FgenerationLimitCondition.h;h=455fda49a92f67c39468df993651b54ebec00e48;hp=ffe977f3430a494411944cbecce1e764662b1b2e;hb=917440678dc4e920dfd5810da1274665acb17138;hpb=c7bf950f7db8b2e5843fbead4851d80202570af2 diff --git a/include/condition/generationLimitCondition.h b/include/condition/generationLimitCondition.h index ffe977f..455fda4 100644 --- a/include/condition/generationLimitCondition.h +++ b/include/condition/generationLimitCondition.h @@ -34,7 +34,7 @@ namespace genetic { * @return true if limit is not reached and another iteration of * calculations should be started, false otherwise */ - bool do_check(Generation<_Chromosome>) { + bool do_check(Generation<_Chromosome> &) { /* Initial population is never checked, as method is invoked after * selection, crossover and mutation. It is safe to increment it now. */