Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing std::tr1::hash on GCC 4.1 (#2907)
Rather than crashing on use (doh!) better to just declare this platform is missing a proper hash_map/hash_set implementation and use the std::map/std::set emulation. Fixes regression introduced by #1913
- Loading branch information
9ab7c73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Matt, do you mind test if you can use other macros like
__GLIBCXX__
instead of GCC versions? Clang seems to be defining__GNUC__
without defining__GNUC__MINOR__
but it typically depend on a newer version of standard library which supports 64 bit integer hash (e.g. 20150123). Maybe worth tracking the version in which hash was added in libstdc++?