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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user