helllo, i've got a problem with the code below. I think the problem lies with the const command . I understand you have to use const_iterator with variables that are passed as const. However in the code i->printSummary() it reports a problem? I've been reading about the const command and has to be used with some care. Is there anything wrong with the function?. The prototype has identical parameter listing.
void eligableParents( const list < mutantType> &tempList)
{
std::list < mutantType> :: const_iterator i;
for ( i = tempList.begin();
i != tempList.end();
++ i )
i->printSummary();
}
printSummary() is a member of mutantType