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
Finished Roulette Selection.
[genetic.git]
/
src
/
generation.h
diff --git
a/src/generation.h
b/src/generation.h
index d36cd90e712374a61acf18a0bf9bd6828b16a4cf..39b9577bc4f7c855da8acdb0c2413de7dffe5721 100644
(file)
--- a/
src/generation.h
+++ b/
src/generation.h
@@
-32,6
+32,11
@@
namespace genetic {
vector<_Chromosome> get() const {
return this->chromosomes;
}
+
+ Generation& operator=(const Generation& generation){
+ this->chromosomes = generation.get();
+ return *this;
+ }
};
}