Prob::Prob()
{
unsignedint i = 0;
//seed generator for latter use
srand(std::time(0));
properTime = 0;
List dielema = List();
properTime = 0;
while(properTime < SECONDS_WORKED)
{
dielema.insert(whenCaged(), Drib::getRandomNumber(0, TREE_HEIGHT-1), i);
i++;
}
}
when I compile it says " error: no matching function for call to `List::insert(unsigned int, unsigned int, unsigned int*)'"
why and how do I correct this? why is it treating i as a pointer (that's the problem right?)