Boost logo

Boost Users :

From: Jeffrey Holle (jeffreyholle_at_[hidden])
Date: 2007-10-02 17:07:16


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?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net