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
Post a Comment