diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-08 17:17:06 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-08 17:17:06 +0000 |
commit | 385aec5ac5337d6aa99d27df476e642a4e67c5c1 (patch) | |
tree | c37969f89c99fee6caa08fdc711de6dc0853b5a6 /libstdc++-v3/include/bits | |
parent | 8879941ca80da5a13c426d2ba9a0ae6b2711e57f (diff) | |
download | gcc-385aec5ac5337d6aa99d27df476e642a4e67c5c1.tar.gz |
PR libstdc++/57394
* include/bits/ios_base.h (ios_base(const ios_base&)): Define as
deleted for C++11.
(operator=(const ios_base&)): Likewise.
* include/std/streambuf: Remove trailing whitespace.
(basic_streambuf(const basic_streambuf&)): Fix initializer for
_M_out_end. Define as defaulted for C++11.
(operator=(const basic_streambuf&)): Define as defaulted for C++11.
(swap(basic_streambuf&)): Define for C++11.
* testsuite/27_io/basic_streambuf/cons/57394.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210228 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits')
-rw-r--r-- | libstdc++-v3/include/bits/ios_base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index ae856de7b45..59c506696f5 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -780,6 +780,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION protected: ios_base() throw (); +#if __cplusplus < 201103L // _GLIBCXX_RESOLVE_LIB_DEFECTS // 50. Copy constructor and assignment operator of ios_base private: @@ -787,6 +788,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ios_base& operator=(const ios_base&); +#else + public: + ios_base(const ios_base&) = delete; + + ios_base& + operator=(const ios_base&) = delete; +#endif }; // [27.4.5.1] fmtflags manipulators |