diff options
| author | Eric Fiselier <eric@efcs.ca> | 2017-01-13 22:42:53 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2017-01-13 22:42:53 +0000 |
| commit | 04333f9bda707d53a3ddf582f477baaaaeed016b (patch) | |
| tree | ace78e65ba083ac681fc0bf7cce8e765b4f0ce20 /libcxx/include/unordered_map | |
| parent | c0431fd02d24b86e3b2a9d029cb44e93aaf77efe (diff) | |
| download | bcm5719-llvm-04333f9bda707d53a3ddf582f477baaaaeed016b.tar.gz bcm5719-llvm-04333f9bda707d53a3ddf582f477baaaaeed016b.zip | |
Diagnose non-const-callable hash functions and comparators
llvm-svn: 291969
Diffstat (limited to 'libcxx/include/unordered_map')
| -rw-r--r-- | libcxx/include/unordered_map | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map index 7baf638833f..3f3808c1e2a 100644 --- a/libcxx/include/unordered_map +++ b/libcxx/include/unordered_map @@ -379,9 +379,7 @@ template <class Key, class T, class Hash, class Pred, class Alloc> _LIBCPP_BEGIN_NAMESPACE_STD -template <class _Key, class _Cp, class _Hash, - bool = is_empty<_Hash>::value && !__libcpp_is_final<_Hash>::value - > +template <class _Key, class _Cp, class _Hash, bool _IsEmpty> class __unordered_map_hasher : private _Hash { @@ -449,9 +447,7 @@ swap(__unordered_map_hasher<_Key, _Cp, _Hash, __b>& __x, __x.swap(__y); } -template <class _Key, class _Cp, class _Pred, - bool = is_empty<_Pred>::value && !__libcpp_is_final<_Pred>::value - > +template <class _Key, class _Cp, class _Pred, bool _IsEmpty> class __unordered_map_equal : private _Pred { |

