diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2013-08-14 15:15:28 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2013-08-14 15:15:28 +0000 |
| commit | ede1aa2d3123f52ad99d951d4b8e8ac8a342b1f0 (patch) | |
| tree | 5e58eba51c4a5ba3ead72140c0ab25fd1a24ea93 /libcxx/include/ostream | |
| parent | bc7dc8d51f1b5bc8cf9e31dec2d41c2e40614051 (diff) | |
| download | bcm5719-llvm-ede1aa2d3123f52ad99d951d4b8e8ac8a342b1f0.tar.gz bcm5719-llvm-ede1aa2d3123f52ad99d951d4b8e8ac8a342b1f0.zip | |
Add a deleted assignment operator for basic_ostream; LWG Issue #2067
llvm-svn: 188375
Diffstat (limited to 'libcxx/include/ostream')
| -rw-r--r-- | libcxx/include/ostream | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/ostream b/libcxx/include/ostream index ce710ac304b..2c618d41b9d 100644 --- a/libcxx/include/ostream +++ b/libcxx/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); |

