2 Oct
2007
2 Oct
'07
9:07 p.m.
While my swap method is now working correctly, I have found the the use of modify on a composite_key in order to preform a swap has corrupted the index. The very next time I attempt to use it in a statement like this: for (tie(iter,iter_end)=xyIndex.equal_range(make_tuple(i)); iter!=iter_end;++iter) The for loop runs forever. I also attempted to print the distance(iter,iter_end) and this function never returns. Note that it happens that the one time my sort function executed, only a single swap was preformed. Is there a way to fix this?