[patch] libstdc++/57394 - copy operations for basic_streambuf
Jonathan Wakely
jwakely@redhat.com
Thu May 8 17:17:00 GMT 2014
This patch isn't very useful on its own, but fixes the PR and should
be useful when adding move operations to the derived streambufs.
The mem-initializer for basic_streambuf::_M_out_end was initialized
from __sb._M_out_cur, which I assume was not intentional. Those
initializers were only added to keep -Weffc++ happy, see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12854#c7
It might make sense just to value-initialize all the members, we're
not expecting that copy constructor to ever get called in C++03 mode,
but I don't plan to change that.
The real commit also removes some trailing whitespace not shown in
this patch.
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 6110 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140508/9fac24b6/attachment.bin>
More information about the Libstdc++
mailing list