diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-05-02 17:25:44 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-05-02 17:25:44 +0100 |
commit | c6d425797207908bb9468d79ac170c3f51c7a565 (patch) | |
tree | c33075a951b6f896c60ca570ab7134d33c8d292f /gcc/libfuncs.h | |
parent | d6476f90da4bfcb8644da32d3b4c4685a72bc84e (diff) | |
download | gcc-c6d425797207908bb9468d79ac170c3f51c7a565.zip gcc-c6d425797207908bb9468d79ac170c3f51c7a565.tar.gz gcc-c6d425797207908bb9468d79ac170c3f51c7a565.tar.bz2 |
PR libstdc++/69608 Move semantics for strstreambuf
In libstdc++ the deprecated char* streams are non-copyable, as was
required pre-C++11.
Since C++11 the standard implies that those streams should be copyable,
but doesn't specify the effects of copying them. This is surely a
defect, so for consistency with other implementations this change makes
them movable, but not copyable.
PR libstdc++/69608
* include/backward/strstream (strstreambuf): Define move constructor
and move assignment operator.
(istrstream, ostrstream, strstream): Likewise.
* testsuite/backward/strstream_move.cc: New.
From-SVN: r259842
Diffstat (limited to 'gcc/libfuncs.h')
0 files changed, 0 insertions, 0 deletions