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.
ironically, i have had this piece of code working fine (with some help) when it was slightly more complicated, and i used a pointer to mutant type and had the following (*i)->printSummary() !!.