From bd2e949869cd238d5d94812007953cf6fe6f4d84 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 29 May 2018 00:08:47 +0000 Subject: LWG 2969 "polymorphic_allocator::construct() shouldn't pass resource()" Patch from Arthur O'Dwyer. In the TS, `uses_allocator` construction for `pair` tried to use an allocator type of `memory_resource*`, which is incorrect because `memory_resource*` is not an allocator type. LWG 2969 fixed it to use `polymorphic_allocator` as the allocator type instead. https://wg21.link/lwg2969 (D47090 included this in ``; at Eric's request, I've split this out into its own patch applied to the existing `` instead.) Reviewed as https://reviews.llvm.org/D47109 llvm-svn: 333384 --- libcxx/test/support/test_memory_resource.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/test/support/test_memory_resource.hpp') diff --git a/libcxx/test/support/test_memory_resource.hpp b/libcxx/test/support/test_memory_resource.hpp index b3472c8b610..4b8167ba039 100644 --- a/libcxx/test/support/test_memory_resource.hpp +++ b/libcxx/test/support/test_memory_resource.hpp @@ -28,7 +28,7 @@ // because it can't include template <> struct TransformErasedTypeAlloc { - using type = std::experimental::pmr::memory_resource*; + using type = std::experimental::pmr::polymorphic_allocator; }; template -- cgit v1.2.3