This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/81381] std::basic_stringbuf only works with DefaultConstructible allocators
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jul 2017 17:59:34 +0000
- Subject: [Bug libstdc++/81381] std::basic_stringbuf only works with DefaultConstructible allocators
- Auto-submitted: auto-generated
- References: <bug-81381-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81381
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Jul 10 17:59:02 2017
New Revision: 250101
URL: https://gcc.gnu.org/viewcvs?rev=250101&root=gcc&view=rev
Log:
PR libstdc++/81381 support stateful allocators in basic_stringbuf
PR libstdc++/81381
* include/bits/sstream.tcc (basic_stringbuf::overflow)
(basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
(basic_stringbuf::str()): Construct new strings with an allocator.
* testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
Added:
trunk/libstdc++-v3/testsuite/27_io/basic_stringbuf/cons/81381.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/sstream.tcc
trunk/libstdc++-v3/include/std/sstream