Bill Roper (billroper) wrote,
Bill Roper
billroper

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

Whee!
Tags: c++, computers, musings, tech, work
Subscribe

  • Ice, Ice, Baby

    Much of today could have been sold for scrap, but there was some progress on the refrigerator front. After decanting the contents of the fridge and…

  • One of Those Days

    Overall, it might have been better to stay in bed today, but that wasn't really an option. I am still slogging through a problem at work. I'm going…

  • Comcast At Work

    So we went to watch some TV that we'd recorded on our Comcast X1 DVR and discovered that -- overnight! -- we had gone from less than 50% full to over…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments