PR libstdc++/81381 support stateful allocators in basic_stringbuf
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Jul 2017 17:59:02 +0000 (18:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 10 Jul 2017 17:59:02 +0000 (18:59 +0100)
commit387c17d312f76173b9af2717cb89359e09647c28
treec9da9b89f426a94165143ac41631873085c42355
parent93ef155b3d2b4de31dec16596f71f3c1eb9b8a03
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.

From-SVN: r250101
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/sstream.tcc
libstdc++-v3/include/std/sstream
libstdc++-v3/testsuite/27_io/basic_stringbuf/cons/81381.cc [new file with mode: 0644]