Hi All,
I seem to be getting an error with my code when running Intel C++ compiler via Visual Studio 2005. The error generated is "Expression:map/set iterator not dereferencable"
I've given my code below in the hope that someone can spot the problem.
set<stl_index>::iterator eit1, eit2=elmt_ids.begin();
bool non_consecutive(false);
// 0. checking whether the elements are consecutively numbered
for ( eit2++, eit1=elmt_ids.begin(); eit1!=elmt_ids.end(); eit1++, eit2++ )
if ( (*eit1)+1 != (*eit2) ) {
non_consecutive=true;
break;