summaryrefslogtreecommitdiffstats
path: root/libcxx/include/unordered_map
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-12-11 20:31:33 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-12-11 20:31:33 +0000
commit42b8bb503308b79214c44a233a1586146802aa28 (patch)
tree4af0bd873f64170611f0785f8d274a1c2cdec9e7 /libcxx/include/unordered_map
parent1fdfec63a41f72f5de143379e8ae56457866c6bf (diff)
downloadbcm5719-llvm-42b8bb503308b79214c44a233a1586146802aa28.tar.gz
bcm5719-llvm-42b8bb503308b79214c44a233a1586146802aa28.zip
Fix http://llvm.org/bugs/show_bug.cgi?id=11461. Credit Alberto Ganesh Barbati.
llvm-svn: 146345
Diffstat (limited to 'libcxx/include/unordered_map')
-rw-r--r--libcxx/include/unordered_map12
1 files changed, 10 insertions, 2 deletions
diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map
index 0862e3fe0a3..3b1701e2fbb 100644
--- a/libcxx/include/unordered_map
+++ b/libcxx/include/unordered_map
@@ -325,7 +325,11 @@ template <class Key, class T, class Hash, class Pred, class Alloc>
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _Tp, class _Hash, bool = is_empty<_Hash>::value>
+template <class _Tp, class _Hash, bool = is_empty<_Hash>::value
+#if __has_feature(is_final)
+ && !__is_final(_Hash)
+#endif
+ >
class __unordered_map_hasher
: private _Hash
{
@@ -371,7 +375,11 @@ public:
{return __hash_(__x);}
};
-template <class _Tp, class _Pred, bool = is_empty<_Pred>::value>
+template <class _Tp, class _Pred, bool = is_empty<_Pred>::value
+#if __has_feature(is_final)
+ && !__is_final(_Pred)
+#endif
+ >
class __unordered_map_equal
: private _Pred
{
OpenPOWER on IntegriCloud