K
kotau
Hi,
I'm having trouble with something that would appear to have a simple
solution.
Here's a version of the code I'm working with:
const Item* p 0;
name::const_iterator i;
name:const_iterator e = p1->end();
for (i=p1->begin(); i<e ++i)
{
if (stricmp(i->func(), var) == 0)
{
p = i;
break;
}
}
The compiler returns that it "cannot convert from const_iterator to
const(Item*)"
I have spent a few hours looking for a definitive answer and have found
nothing so far.
Any help will be greatly appreciated.
Cheers.
Patrick
I'm having trouble with something that would appear to have a simple
solution.
Here's a version of the code I'm working with:
const Item* p 0;
name::const_iterator i;
name:const_iterator e = p1->end();
for (i=p1->begin(); i<e ++i)
{
if (stricmp(i->func(), var) == 0)
{
p = i;
break;
}
}
The compiler returns that it "cannot convert from const_iterator to
const(Item*)"
I have spent a few hours looking for a definitive answer and have found
nothing so far.
Any help will be greatly appreciated.
Cheers.
Patrick