When i try it goes heywire and gives me 35 errors. all for the erase command. :(
for(int i=0; i<populationsize_; i++)
{
//check for black
for(int j=answer_->front(); j!=answer_->back(); j++)
{
if(answer_[j]==population_[i][j])
{
feedback_[i][j].push_back("Match");
for(int k=tempanswer_->at(i).front(); k!=tempanswer_->at(i).back(); k++)
{
//find first instance
if(tempanswer_[i][k]==answer_[j])
{
tempanswer_[i].erase(k);
break;
}
}
}
}
}