c++ - Function calls from iterator loops "Debug assertion failed" Expression:map/set iterators incompatible -


function calls iterator loops

i getting error when calling function inside iterator loop saying "debug assertion failed" expression:map/set iterators incompatible. not sure reason is.

char *text = new char[maxlen]; int j; for( map<int, string>::iterator it=map.begin(); it!=map.end(); ++it) {     (j=0;j<orows;j++)     {         strcpy(text, (*it).second.c_str());         char val;         obj->findstatus(data[j].id, stripback, &val);         data[j].status[j] = val;     } } 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -