From 2df3700879cb25c67788f60530a2de07f9dc0e2a Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 14 Aug 2013 15:15:28 +0000 Subject: [PATCH] Add a deleted assignment operator for basic_ostream; LWG Issue #2067 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@188375 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/ostream | 4 ++++ www/cxx1y_status.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ostream b/include/ostream index ce710ac3..2c618d41 100644 --- a/include/ostream +++ b/include/ostream @@ -32,6 +32,7 @@ public: virtual ~basic_ostream(); // 27.7.2.3 Assign/swap + basic_ostream& operator=(const basic_ostream& rhs) = delete; // C++14 basic_ostream& operator=(basic_ostream&& rhs); void swap(basic_ostream& rhs); @@ -161,6 +162,9 @@ protected: #endif // 27.7.2.3 Assign/swap +#if _LIBCPP_STD_VER > 11 + basic_ostream& operator=(const basic_ostream&) = delete; +#endif #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES _LIBCPP_INLINE_VISIBILITY basic_ostream& operator=(basic_ostream&& __rhs); diff --git a/www/cxx1y_status.html b/www/cxx1y_status.html index ae55f231..07dae697 100644 --- a/www/cxx1y_status.html +++ b/www/cxx1y_status.html @@ -88,7 +88,7 @@ 2061make_move_iterator and arraysKona 2064More noexcept issues in basic_stringKona 2065Minimal allocator interfaceKona - 2067packaged_task should have deleted copy c'tor with const parameterKona + 2067packaged_task should have deleted copy c'tor with const parameterKonaComplete 2069Inconsistent exception spec for basic_string move constructorKona 2096Incorrect constraints of future::get in regard toKona 2102Why is std::launch an implementation-defined type?Kona