public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-4514] libstdc++: Fix new basic_stringbuf constructor
@ 2020-10-29 1:28 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-10-29 1:28 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:c6bfc4eb3c961181912647781d7dd38057db655b
commit r11-4514-gc6bfc4eb3c961181912647781d7dd38057db655b
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Oct 29 01:05:03 2020 +0000
libstdc++: Fix new basic_stringbuf constructor
libstdc++-v3/ChangeLog:
* include/std/sstream (basic_stringbuf(__string_type&&, openmode)):
Call _M_init_syncbuf to set up get/put areas. Also qualify
std::move.
Diff:
---
libstdc++-v3/include/std/sstream | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/include/std/sstream b/libstdc++-v3/include/std/sstream
index f03f3abd6fc..33a00486606 100644
--- a/libstdc++-v3/include/std/sstream
+++ b/libstdc++-v3/include/std/sstream
@@ -181,8 +181,8 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
basic_stringbuf(__string_type&& __s,
ios_base::openmode __mode = ios_base::in
| ios_base::out )
- : __streambuf_type(), _M_mode(__mode), _M_string(move(__s))
- { }
+ : __streambuf_type(), _M_mode(__mode), _M_string(std::move(__s))
+ { _M_stringbuf_init(__mode); }
template<typename _SAlloc>
basic_stringbuf(const basic_string<_CharT, _Traits, _SAlloc>& __s,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-29 1:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 1:28 [gcc r11-4514] libstdc++: Fix new basic_stringbuf constructor Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).