boostorg / container_hash

Generic hash function for STL style unordered containers
https://boost.org/libs/container_hash
29 stars 39 forks source link

Plans to release development version #26

Closed andrewcorrigan closed 1 year ago

andrewcorrigan commented 1 year ago

I'm getting this error in Boost 1.80.0 with Clang/Libc++-15

/boost/boost/container_hash/hash.hpp:132:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
        struct hash_base : std::unary_function<T, std::size_t> {};

It looks like this is already fixed here and has been since 2019, 504857692148d52afe7110bcb96cf837b0ced9d7 and the current version doesn't even have any std::unary_function code, even with a guard. Is there a timeline for the version of container_hash in this repo to merged into the released version of Boost?

pdimov commented 1 year ago

This commit is part of 1.80.

pdimov commented 1 year ago

The commit that fixes the libc++15 issue is https://github.com/boostorg/config/commit/f0af4a9184457939b89110795ae2d293582c5f66, and it's not in 1.80. It should be in 1.81.

andrewcorrigan commented 1 year ago

Excellent, thank you for the quick response and clarification!

Closing...