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
Big optimizations and securing code.
[genetic.git]
/
include
/
fitness
/
fitness.h
diff --git
a/include/fitness/fitness.h
b/include/fitness/fitness.h
index 01bddd77e166021e53351eecd4cf478db03efb9a..1ab804afd43f5911dd229f0fcfb85d510e25aec0 100644
(file)
--- a/
include/fitness/fitness.h
+++ b/
include/fitness/fitness.h
@@
-46,7
+46,7
@@
namespace genetic {
/**
* Copy constructor
*/
/**
* Copy constructor
*/
- Fitness(_Chromosome& _chromosome)
+ Fitness(
const
_Chromosome& _chromosome)
: chromosome(_chromosome) {
}
: chromosome(_chromosome) {
}
@@
-63,7
+63,7
@@
namespace genetic {
* Method used to pass additional arguments needed by the function to
* run correctly.
*/
* Method used to pass additional arguments needed by the function to
* run correctly.
*/
- virtual void parseArguments(std::map<string, string>) { }
+ virtual void parseArguments(std::map<string, string>
&
) { }
/**
* Method used to get additional arguments needed by the function to
/**
* Method used to get additional arguments needed by the function to