Example #1
0
bool Genome::operator==(const Genome& other) const
{
    if(valid() && other.valid())
        return fitness()==other.fitness();
    return false;
}
Example #2
0
bool Genome::operator>(const Genome& other) const
{
    if(valid() && other.valid())
        return fitness()>other.fitness();
    return valid();
}