Suppressed most warning (except some unused variables) if you don't modify anythig
This commit is contained in:
parent
d0d14c3ff8
commit
1d7b79b85a
2 changed files with 12 additions and 10 deletions
|
|
@ -46,15 +46,16 @@ public:
|
|||
*/
|
||||
bool operator()(GenotypeT & _genotype)
|
||||
{
|
||||
bool isModified;
|
||||
// START code for mutation of the _genotype object
|
||||
|
||||
/** Requirement
|
||||
* if _genotype has been modified
|
||||
* return true;
|
||||
* otherwise
|
||||
* return false;
|
||||
* if (_genotype has been modified)
|
||||
* isModified = true;
|
||||
* else
|
||||
* isModified = false;
|
||||
*/
|
||||
|
||||
return isModified;
|
||||
// END code for mutation of the _genotype object
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,15 +48,16 @@ public:
|
|||
*/
|
||||
bool operator()(GenotypeT& _genotype1, GenotypeT & _genotype2)
|
||||
{
|
||||
bool oneAtLeastIsModified;
|
||||
// START code for crossover of _genotype1 and _genotype2 objects
|
||||
|
||||
/** Requirement
|
||||
* if at least one genotype has been modified - no way to distinguish
|
||||
* return true;
|
||||
* otherwise
|
||||
* return false;
|
||||
* if (at least one genotype has been modified) // no way to distinguish
|
||||
* oneAtLeastIsModified = true;
|
||||
* else
|
||||
* oneAtLeastIsModified = false;
|
||||
*/
|
||||
|
||||
return oneAtLeastIsModified;
|
||||
// END code for crossover of _genotype1 and _genotype2 objects
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue