V
vivicrow
Hi, assume that I have a class called ClassA, if I do the following, it
works fine:
ClassA *p1 = new ClassA();
p1->Update();
if I do the following,
map<string, ClassA> myMap;
string name("something");
myMap.insert(pair<string,ClassA>(name, ClssA()));
map<stirng, ClassA>::iterator p;
p = botsAI.find(name);
p->second.Update();
I would get mystery errors
pure virtual method called
terminate called without an active exception
so my question is why calling the function through an iterator doesn't
work....what is the difference between the iterator and a normal
pointer???
Any help would be great!!!!!!
works fine:
ClassA *p1 = new ClassA();
p1->Update();
if I do the following,
map<string, ClassA> myMap;
string name("something");
myMap.insert(pair<string,ClassA>(name, ClssA()));
map<stirng, ClassA>::iterator p;
p = botsAI.find(name);
p->second.Update();
I would get mystery errors
pure virtual method called
terminate called without an active exception
so my question is why calling the function through an iterator doesn't
work....what is the difference between the iterator and a normal
pointer???
Any help would be great!!!!!!