I have code that looks like the following, (it's going to be changing soon
so as not to use the list), but for some reason the assert is failing the
assertion on the first iteration of the loop. misspell takes a string and
the dictionary miss (does not know about the list), how can it fail the
assertion???
so as not to use the list), but for some reason the assert is failing the
assertion on the first iteration of the loop. misspell takes a string and
the dictionary miss (does not know about the list), how can it fail the
assertion???
Code:
int i = 0;
for(list<string>::iterator iter = l.begin(); iter != l.end(); ++iter){
cout << i++ <<endl;
cout << "Starting to mispell " << *iter << " Please watch..."<<endl;
load.misspell(*iter,miss);
assert(iter == l.begin());
}