Boost logo

Boost Users :

Subject: Re: [Boost-users] Multi Index Container - find() not working with std::string, kind of stuck...
From: Steve Hibbert (hiblet_at_[hidden])
Date: 2011-07-09 12:58:25


I've found the problem. I broke the constancy rule on the container, like a
true noob. Objects were being added to the container with a temporary
ExchID, and then subsequently the ExchID's for each object were updated,
making the ExchID index corrupt.

Whenever I listed the container objects, they looked fine, and the index
looked OK. The corruption gave me a 50-50 hit rate on finding objects using
that index, which had me confused to say the least. And all it took was a
couple of days to discover.

--
View this message in context: http://boost.2283326.n4.nabble.com/Multi-Index-Container-find-not-working-with-std-string-kind-of-stuck-tp3654763p3656433.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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