Fix hash requirements check in __hash_table.
authorEric Fiselier <eric@efcs.ca>
Fri, 3 Mar 2017 22:35:58 +0000 (22:35 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 3 Mar 2017 22:35:58 +0000 (22:35 +0000)
commitbd6a2d850565341ff6fbf134998d48ad84d35585
tree4fcbcf60038f02d81f5381fc166bfe1cb1fbf35f
parent7ee83b41e01e3377b6c96a418eea2bd8b8b5b940
Fix hash requirements check in __hash_table.

r296565 attempted to add better diagnostics when an unordered container
is instantiated with a hash that doesn't meet the Hash requirements.

However I mistakenly checked the wrong set of requirements. Specifically
it checked if the hash met the requirements for specializations of
std::hash. However these requirements are stricter than the generic
Hash requirements.

This patch fixes the assertions to only check the Hash requirements.

llvm-svn: 296919
libcxx/include/__hash_table
libcxx/include/utility
libcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.fail.cpp