Use constant in GenerationLimit class.
[genetic.git] / src / condition / generationLimit.h
index 9cd11dabc27e547fb7ae770c90d0077ce4c01983..e387669b4dc2f960e7a56b8a9d0e056a89ca0ad0 100644 (file)
@@ -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