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

  • Taking a Break

    I am taking a break. Not immediately, but I have scheduled some time off from work, because I have not taken more than a day or so off of work since…

  • Dumb Arguments

    The argument du jour appears to be that you don't have the right to criticize someone's decision, because you aren't them and you don't know what…

  • Mostly Oblivious

    I see the occasional report in electronic print, or on the TV, or even on the radio, but other than that, I have completely ignored this year's…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded