Add a deleted assignment operator for basic_ostream; LWG Issue #2067
llvm-svn: 188375
diff --git a/libcxx/include/ostream b/libcxx/include/ostream
index ce710ac..2c618d4 100644
--- a/libcxx/include/ostream
+++ b/libcxx/include/ostream
@@ -32,6 +32,7 @@
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 @@
#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);