Original Post
Basically, I have some code where I have 15,000 elements in a std::map. I thought a direct switch to boost::unordered_map would yield lookup and space savings, but unfortunately what happens is that it crashes inside boost::unordered_map::find with a division by zero error. The only division in that area of code that I can see involves the number of buckets, but I know that is non-zero (something like 23000). I'm using Visual C++ 2008 with Boost 1.36. (I know it's old, but that's not something I can change right now. There's nothing in the changelog suggesting a fix since then however.) Has anybody else seen anything like this?