boostorg / boostorg/container_hash
Compatibility with std::hash
Open
- Dominant language
- C++
- Stars
- 39
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
boost::hash_combine is very useful, however, it does require to implement a hash function twice in order to be used. `std::hash` and `boost::hash_value`.
On stackoverflow, several 'workarounds' exist for making this easier, all assume you are able to encapsulate the includes to hash.hpp in your own wrapping header.
Would it be possible to allow hash_combine ... to fall back to `std::hash` when no `hash_value` is available?
https://stackoverflow.com/a/51915825/2466431
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.