[Bug libstdc++/81381] std::basic_stringbuf only works with DefaultConstructible allocators
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 10 17:59:00 GMT 2017
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
More information about the Gcc-bugs
mailing list