W dniu 4 marca 2010 18:54 użytkownik Jon Cruz <jon@...18...> napisał:
Oh, and to illustrate, I *did* try to update my OS X build environment to newer components, but that failed and left me with a broken toolchain (via macports). That's one of the things about the mac platform. Each and every user has a good toolchain included with the OS when they get it, but trying to move to anything beyond the stock does get a bit risky.
Well, the point is that the stock OSX toolchain is not good at all, it's broken.
I can live with the fix, but I cleaned it up slightly by moving the pointer hash definition into the compatibility header, and using all-uppercase for macros.
I added a different implementation of pointer hashing taken from Boost - it uses x + (x >> 3) rather than x directly.
Regards, Krzysztof