diff --git a/fourindex.h b/fourindex.h index 823dbbc..3363a5a 100644 --- a/fourindex.h +++ b/fourindex.h @@ -229,8 +229,8 @@ ostream& operator<<(ostream &s, const fourindex &x) int n; n=x.size(); s << n << '\n'; - typename fourindex::iterator it=x.begin(); - while(it!=x.end()) + typename fourindex::iterator it=x.begin(),end=x.end(); + while(it!=end) { s << (int)it->index.indiv.i << ' ' << (int)it->index.indiv.j<< ' ' <<(int)it->index.indiv.k << ' ' << (int)it->index.indiv.l << ' ' << it->elem << '\n'; ++it;