diff --git a/libcxx/test/libcxx/iterators/contiguous_iterators.pass.cpp b/libcxx/test/libcxx/iterators/contiguous_iterators.pass.cpp --- a/libcxx/test/libcxx/iterators/contiguous_iterators.pass.cpp +++ b/libcxx/test/libcxx/iterators/contiguous_iterators.pass.cpp @@ -35,12 +35,6 @@ #include #endif -#if TEST_STD_VER >= 11 -#define DELETE_FUNCTION = delete -#else -#define DELETE_FUNCTION -#endif - class T; // incomplete class my_input_iterator diff --git a/libcxx/test/std/utilities/memory/storage.iterator/raw_storage_iterator.pass.cpp b/libcxx/test/std/utilities/memory/storage.iterator/raw_storage_iterator.pass.cpp --- a/libcxx/test/std/utilities/memory/storage.iterator/raw_storage_iterator.pass.cpp +++ b/libcxx/test/std/utilities/memory/storage.iterator/raw_storage_iterator.pass.cpp @@ -18,12 +18,6 @@ #include "test_macros.h" #include -#if TEST_STD_VER >= 11 -#define DELETE_FUNCTION = delete -#else -#define DELETE_FUNCTION -#endif - int A_constructed = 0; struct A @@ -36,7 +30,7 @@ ~A() {--A_constructed; data_ = 0;} bool operator==(int i) const {return data_ == i;} - A* operator& () DELETE_FUNCTION; + A* operator& () = delete; }; int main(int, char**) diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.pass.cpp --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.pass.cpp @@ -21,12 +21,6 @@ #include "test_allocator.h" #include "min_allocator.h" -#if TEST_STD_VER >= 11 -#define DELETE_FUNCTION = delete -#else -#define DELETE_FUNCTION -#endif - int new_count = 0; struct A @@ -42,7 +36,7 @@ int get_int() const {return int_;} char get_char() const {return char_;} - A* operator& () DELETE_FUNCTION; + A* operator& () = delete; private: int int_; char char_; diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp @@ -18,12 +18,6 @@ #include "test_macros.h" #include "count_new.h" -#if TEST_STD_VER >= 11 -#define DELETE_FUNCTION = delete -#else -#define DELETE_FUNCTION -#endif - struct A { static int count; @@ -37,7 +31,7 @@ int get_int() const {return int_;} char get_char() const {return char_;} - A* operator& () DELETE_FUNCTION; + A* operator& () = delete; private: int int_; 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 @@ -419,10 +419,8 @@ explicit limited_allocator(limited_allocator const& other) : handle_(other.handle_) {} -private: - limited_allocator& operator=(const limited_allocator&);// = delete; + limited_allocator& operator=(const limited_allocator&) = delete; -public: pointer allocate(size_type n) { return handle_->template allocate(n); } void deallocate(pointer p, size_type n) { handle_->deallocate(p, n); } size_type max_size() const {return N;} diff --git a/libcxx/test/support/test_iterators.h b/libcxx/test/support/test_iterators.h --- a/libcxx/test/support/test_iterators.h +++ b/libcxx/test/support/test_iterators.h @@ -16,12 +16,6 @@ #include "test_macros.h" -#if TEST_STD_VER >= 11 -#define DELETE_FUNCTION = delete -#else -#define DELETE_FUNCTION -#endif - template class output_iterator { @@ -49,7 +43,7 @@ {output_iterator tmp(*this); ++(*this); return tmp;} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; // This is the Cpp17InputIterator requirement as described in Table 87 ([input.iterators]), @@ -88,7 +82,7 @@ {return !(x == y);} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; template @@ -136,7 +130,7 @@ {return !(x == y);} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; template @@ -187,7 +181,7 @@ {return !(x == y);} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; template @@ -236,7 +230,7 @@ {bidirectional_iterator tmp(*this); --(*this); return tmp;} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; template @@ -296,7 +290,7 @@ TEST_CONSTEXPR_CXX14 reference operator[](difference_type n) const {return it_[n];} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; template @@ -426,7 +420,7 @@ } template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; }; #endif @@ -553,7 +547,7 @@ } template - void operator,(T2 const &) DELETE_FUNCTION; + void operator,(T2 const &) = delete; private: const T* begin_; @@ -624,7 +618,7 @@ } template - void operator,(T2 const &) DELETE_FUNCTION; + void operator,(T2 const &) = delete; private: const T *begin_; @@ -664,7 +658,7 @@ constexpr I base() && { return std::move(base_); } template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; private: I base_ = I(); @@ -853,7 +847,7 @@ } template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; private: I base_; @@ -932,7 +926,7 @@ constexpr reference operator[](difference_type n) const {return it_[n];} template - void operator,(T const &) DELETE_FUNCTION; + void operator,(T const &) = delete; friend constexpr difference_type operator-(const three_way_contiguous_iterator& x, const three_way_contiguous_iterator& y) { @@ -944,6 +938,4 @@ #endif // TEST_STD_VER > 17 && defined(__cpp_lib_concepts) -#undef DELETE_FUNCTION - #endif // SUPPORT_TEST_ITERATORS_H