boostorg / container_hash

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

Fix hash_combine_impl to only test for a specific bit width and not f… #17

Closed pdimov closed 2 years ago

pdimov commented 2 years ago

…or concrete types

Fixes #8.

pdimov commented 2 years ago

No, it didn't make it into 1.77; it hasn't been merged at all.

UINT64_C still warns in pedantic mode on GCC or Clang (or both; I forget which) because of the long long constant, and it's not possible to disable the warning, because it happens at preprocessing time. Splitting the constant is the only warning-free way I've found.