dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3f3b7e
)
Use constant in GenerationLimit class.
author
Rafał Długołęcki
<rafal@dlugolecki.net.pl>
Mon, 6 Apr 2015 11:30:08 +0000
(13:30 +0200)
committer
Rafał Długołęcki
<rafal@dlugolecki.net.pl>
Mon, 6 Apr 2015 11:30:08 +0000
(13:30 +0200)
src/condition/generationLimit.h
patch
|
blob
|
history
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