diff options
| author | Eric Fiselier <eric@efcs.ca> | 2017-01-21 00:57:29 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2017-01-21 00:57:29 +0000 |
| commit | d9e1631d2326ec60881fb637c5287d16f321a007 (patch) | |
| tree | ef3878e872531758d4ad3695ffb688b90f2e3306 /libcxx/test/std/utilities/memory | |
| parent | 6620376da79f7ee91f71cf93c5921fb8f406f71c (diff) | |
| download | bcm5719-llvm-d9e1631d2326ec60881fb637c5287d16f321a007.tar.gz bcm5719-llvm-d9e1631d2326ec60881fb637c5287d16f321a007.zip | |
Fix recent build errors
llvm-svn: 292689
Diffstat (limited to 'libcxx/test/std/utilities/memory')
| -rw-r--r-- | libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp index f989a017348..879ea405c75 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp @@ -46,13 +46,16 @@ void test_disabled_with_deleter() { test_hash_disabled_for_type<pointer>(); } +namespace std { + template <class T> -struct std::hash<min_pointer<T, std::integral_constant<size_t, 1>>> { - size_t operator()(min_pointer<T, std::integral_constant<size_t, 1>> p) const { +struct hash<::min_pointer<T, std::integral_constant<size_t, 1>>> { + size_t operator()(::min_pointer<T, std::integral_constant<size_t, 1>> p) const { if (!p) return 0; return std::hash<T*>{}(std::addressof(*p)); } }; +} struct A {}; |

