From d9e1631d2326ec60881fb637c5287d16f321a007 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 21 Jan 2017 00:57:29 +0000 Subject: Fix recent build errors llvm-svn: 292689 --- .../util.smartptr/util.smartptr.hash/hash_unique_ptr.pass.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libcxx/test/std/utilities/memory') 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(); } +namespace std { + template -struct std::hash>> { - size_t operator()(min_pointer> p) const { +struct hash<::min_pointer>> { + size_t operator()(::min_pointer> p) const { if (!p) return 0; return std::hash{}(std::addressof(*p)); } }; +} struct A {}; -- cgit v1.2.3