This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/81381] std::basic_stringbuf only works with DefaultConstructible allocators


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]