|
|
4dd737 |
2015-07-15 Jonathan Wakely <jwakely@redhat.com>
|
|
|
4dd737 |
|
|
|
4dd737 |
PR libstdc++/57394
|
|
|
4dd737 |
* include/std/streambuf (basic_streambuf(const basic_streambuf&)):
|
|
|
4dd737 |
Fix initializer for _M_out_end.
|
|
|
4dd737 |
(operator=(const basic_streambuf&)): Replace stub with actual
|
|
|
4dd737 |
implementation.
|
|
|
4dd737 |
|
|
|
4dd737 |
--- libstdc++-v3/include/std/streambuf
|
|
|
4dd737 |
+++ libstdc++-v3/include/std/streambuf
|
|
|
4dd737 |
@@ -802,12 +802,22 @@
|
|
|
4dd737 |
basic_streambuf(const basic_streambuf& __sb)
|
|
|
4dd737 |
: _M_in_beg(__sb._M_in_beg), _M_in_cur(__sb._M_in_cur),
|
|
|
4dd737 |
_M_in_end(__sb._M_in_end), _M_out_beg(__sb._M_out_beg),
|
|
|
4dd737 |
- _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_cur),
|
|
|
4dd737 |
+ _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_end),
|
|
|
4dd737 |
_M_buf_locale(__sb._M_buf_locale)
|
|
|
4dd737 |
{ }
|
|
|
4dd737 |
|
|
|
4dd737 |
basic_streambuf&
|
|
|
4dd737 |
- operator=(const basic_streambuf&) { return *this; };
|
|
|
4dd737 |
+ operator=(const basic_streambuf& __sb)
|
|
|
4dd737 |
+ {
|
|
|
4dd737 |
+ _M_in_beg = __sb._M_in_beg;
|
|
|
4dd737 |
+ _M_in_cur = __sb._M_in_cur;
|
|
|
4dd737 |
+ _M_in_end = __sb._M_in_end;
|
|
|
4dd737 |
+ _M_out_beg = __sb._M_out_beg;
|
|
|
4dd737 |
+ _M_out_cur = __sb._M_out_cur;
|
|
|
4dd737 |
+ _M_out_end = __sb._M_out_end;
|
|
|
4dd737 |
+ _M_buf_locale = __sb._M_buf_locale;
|
|
|
4dd737 |
+ return *this;
|
|
|
4dd737 |
+ };
|
|
|
4dd737 |
};
|
|
|
4dd737 |
|
|
|
4dd737 |
// Explicit specialization declarations, defined in src/streambuf.cc.
|