March 15th, 2018

Learning the Hard Way

Maybe I'm just not looking in the right places, but I'm underimpressed by the documentation for the Boost libraries, at least in the section that I'm digging through now on unordered_map. And hashing. The only way that I've managed to get by is by referring to the docs for C++ 11 which -- because I am still mired on Visual Studio 2010 -- are not so much available where I'm coding.

It's all made worse by the fact that I am really good at MFC, but MFC is monstrously obsolete. Unfortunately, it's what the underpinnings of this code were all written in. Except for the places where folks have decided to mix in some standard C++, which means that you're frantically switching back and forth between CString and std::string, because what's a little compatibility mismatch among friends, right?

And because most of the world has moved on from boost::unordered_map to std::unordered_map, finding examples of how to make the former sit up, beg, and roll over has become a lot more of a challenge to my Google-fu.

Despite this, I have managed to write and install a custom hash function for my boost::unordered_map and it appears to be working as designed.

And the wonderful thing about having a working example is that I can now replicate it.

As many times as I need to.

Which is "too many".