dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use constant in GenerationLimit class.
[genetic.git]
/
src
/
condition
/
generationLimit.h
diff --git
a/src/condition/generationLimit.h
b/src/condition/generationLimit.h
index 9cd11dabc27e547fb7ae770c90d0077ce4c01983..e387669b4dc2f960e7a56b8a9d0e056a89ca0ad0 100644
(file)
--- 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