commit | c6422362d5f9683f7e1003fe244b3fe84d6cca6f | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Wed Mar 01 02:02:28 2017 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Wed Mar 01 02:02:28 2017 +0000 |
tree | db50ebf653a791d4ca1e77ac643b8c4f0b87415f | |
parent | 67f7a781263dad0b1ea54eb2d2afb00f2fd938ef [diff] |
Improve diagnostics when an invalid hash is used in an unordered container. This patch adds a static assertion that the specified hash meets the requirements of an enabled hash, and it ensures that the static assertion is evaluated before __compressed_pair is instantiated. That way the static assertion diagnostic is emitted first. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@296565 91177308-0d34-0410-b5e6-96231b3b80d8