What i want to do is
for (list<cPacket *>::iterator i = cache.begin(); i != cache.end(); i++){
if( strcmp(i->getName(),id) == 0 ){
return true;
}
}
where getName
is function of the class cPacket, But it does not work, i tries also
i.operator->()->getName()
, and again nothing.
Can anybody help me?