fix Fitness default construction value
This commit is contained in:
parent
5ac5a72db2
commit
2b03bd6dae
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ public:
|
||||||
ctors here since default types like float have no void initializer.
|
ctors here since default types like float have no void initializer.
|
||||||
VC++ allows it, but gcc does not
|
VC++ allows it, but gcc does not
|
||||||
*/
|
*/
|
||||||
EO(): repFitness(0), invalidFitness(true) {}
|
EO(): repFitness(Fitness()), invalidFitness(true) {}
|
||||||
|
|
||||||
/// Virtual dtor
|
/// Virtual dtor
|
||||||
virtual ~EO() {};
|
virtual ~EO() {};
|
||||||
|
|
|
||||||
Reference in a new issue