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
Fixed Mutation.
[genetic.git]
/
src
/
gene.h
diff --git
a/src/gene.h
b/src/gene.h
index 9786587d3d5409cf1ed0ab0a2e7996a495c600de..e4142811b3e23bd31724d9a3ae7a243af828e801 100644
(file)
--- a/
src/gene.h
+++ b/
src/gene.h
@@
-20,7
+20,8
@@
namespace genetic {
/** Copy constructor */
Gene(const Gene& gene) : value(gene.get()) {}
- Gene& operator=(const Gene&){
+ Gene& operator=(const Gene& gene) {
+ this->value = gene.get();
return *this;
}