From: Rafał Długołęcki Date: Mon, 6 Apr 2015 11:30:08 +0000 (+0200) Subject: Use constant in GenerationLimit class. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=5beab3dca02f048d65a80400649f03e378da962d;p=genetic.git Use constant in GenerationLimit class. --- diff --git a/src/condition/generationLimit.h b/src/condition/generationLimit.h index 9cd11da..e387669 100644 --- a/src/condition/generationLimit.h +++ b/src/condition/generationLimit.h @@ -26,7 +26,7 @@ namespace genetic { * Variable indicating max number of generations, after which program * will be stopped */ - unsigned int maxNumberOfGenerations = 0; + const unsigned int maxNumberOfGenerations = 0; /** * Checks if the given limit of generations has occured