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.
Many Thanks.......
[code=C++]
set<stl_index>: :iterator eit1, eit2=elmt_ids.b egin();
bool non_consecutive (false);
// 0. checking whether the elements are consecutively numbered
for ( eit2++, eit1=elmt_ids.b egin(); eit1!=elmt_ids. end(); eit1++, eit2++ )
if ( (*eit1)+1 != (*eit2) ) {
non_consecutive =true;
break; [/code]
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.
Many Thanks.......
[code=C++]
set<stl_index>: :iterator eit1, eit2=elmt_ids.b egin();
bool non_consecutive (false);
// 0. checking whether the elements are consecutively numbered
for ( eit2++, eit1=elmt_ids.b egin(); eit1!=elmt_ids. end(); eit1++, eit2++ )
if ( (*eit1)+1 != (*eit2) ) {
non_consecutive =true;
break; [/code]
Comment