Bill Roper (billroper) wrote,
Bill Roper

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".

Tags: c++, computers, musings, tech, work

  • Time for Rebuilding

    Well, there's nothing like research. Having determined that DDR5 is going to carry a substantial price premium over DDR4 memory for at least a year…

  • Driven Wild

    The studio computer continues to misbehave in various ways. When I fired up Cubase today, I got a lot of nasty, blocky video, despite having cleaned…

  • Some Old Doggerel

    I recall having mangled a CSN tune many years ago on the way to Contraption. Like that convention, the particular co-worker whose code I was digging…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded