diff --git a/libcxx/test/support/test_allocator.h b/libcxx/test/support/test_allocator.h --- a/libcxx/test/support/test_allocator.h +++ b/libcxx/test/support/test_allocator.h @@ -139,15 +139,6 @@ {assert(data_ >= 0); --alloc_count; ::operator delete((void*)p);} size_type max_size() const TEST_NOEXCEPT {return UINT_MAX / sizeof(T);} -#if TEST_STD_VER < 11 - void construct(pointer p, const T& val) - {::new(static_cast(p)) T(val);} -#else - template void construct(pointer p, U&& val) - {::new(static_cast(p)) T(std::forward(val));} -#endif - void destroy(pointer p) - {p->~T();} friend bool operator==(const test_allocator& x, const test_allocator& y) {return x.data_ == y.data_;} friend bool operator!=(const test_allocator& x, const test_allocator& y) @@ -203,14 +194,6 @@ {assert(data_ >= 0); --alloc_count; ::operator delete((void*)p); } size_type max_size() const TEST_NOEXCEPT {return UINT_MAX / sizeof(T);} -#if TEST_STD_VER < 11 - void construct(pointer p, const T& val) - {::new(static_cast(p)) T(val);} -#else - template void construct(pointer p, U&& val) - {::new(static_cast(p)) T(std::forward(val));} -#endif - void destroy(pointer p) {p->~T();} friend bool operator==(const non_default_test_allocator& x, const non_default_test_allocator& y) {return x.data_ == y.data_;}