[Bug libstdc++/119741] [C++26] Implement P2495R3, Interfacing stringstreams with string_view
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119741 --- Comment #4 from GCC Commits --- The master branch has been updated by Nathan Myers : https://gcc.gnu.org/g:845826088c942f7df2ad6fbfe4cb976f83abcd16 commit r16-1299-g845826088c942f7df2ad6fbfe4cb976f83abcd16 Author: Nathan Myers Date: Wed Jun 4 14:52:29 2025 -0400 libstdc++: sstream from string_view (P2495R3) [PR119741] Add constructors to stringbuf, stringstream, istringstream, and ostringstream, and a matching overload of str(sv) in each, that take anything convertible to a string_view in places where the existing ctors and function take a string. Note this change omits the constraint applied to the istringstream constructor from string cited as a "drive-by" in P2495R3, as we have determined it is redundant. libstdc++-v3/ChangeLog: PR libstdc++/119741 * include/std/sstream: full implementation, really just decls, requires clause and plumbing. * include/bits/version.def, include/bits/version.h: new preprocessor symbol __cpp_lib_sstream_from_string_view. * testsuite/27_io/basic_stringbuf/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_istringstream/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_ostringstream/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_stringstream/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_stringbuf/cons/wchar_t/string_view.cc: New tests. * testsuite/27_io/basic_istringstream/cons/wchar_t/string_view.cc: New tests. * testsuite/27_io/basic_ostringstream/cons/wchar_t/string_view.cc: New tests. * testsuite/27_io/basic_stringstream/cons/wchar_t/string_view.cc: New tests. Reviewed-by: Jonathan Wakely
[Bug libstdc++/119741] [C++26] Implement P2495R3, Interfacing stringstreams with string_view
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119741 Nathan Myers changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Target Milestone|--- |16.0 --- Comment #3 from Nathan Myers --- Reviewed by: Jonathan Wakeley
[Bug libstdc++/119741] [C++26] Implement P2495R3, Interfacing stringstreams with string_view
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119741 --- Comment #2 from GCC Commits --- The master branch has been updated by Nathan Myers : https://gcc.gnu.org/g:8537e4851072ea1f1982c4c6ab0d24c9383e9edd commit r16-1117-g8537e4851072ea1f1982c4c6ab0d24c9383e9edd Author: Nathan Myers Date: Wed Jun 4 14:52:29 2025 -0400 libstdc++: sstream from string_view (P2495R3) [PR119741] Add constructors to stringbuf, stringstream, istringstream, and ostringstream, and a matching overload of str(sv) in each, that take anything convertible to a string_view in places where the existing ctors and function take a string. Note this change omits the constraint applied to the istringstream constructor from string cited as a "drive-by" in P2495R3, as we have determined it is redundant. libstdc++-v3/ChangeLog: PR libstdc++/119741 * include/std/sstream: full implementation, really just decls, requires clause and plumbing. * include/bits/version.def, include/bits/version.h: new preprocessor symbol __cpp_lib_sstream_from_string_view. * testsuite/27_io/basic_stringbuf/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_istringstream/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_ostringstream/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_stringstream/cons/char/string_view.cc: New tests. * testsuite/27_io/basic_stringbuf/cons/wchar_t/string_view.cc: New tests. * testsuite/27_io/basic_istringstream/cons/wchar_t/string_view.cc: New tests. * testsuite/27_io/basic_ostringstream/cons/wchar_t/string_view.cc: New tests. * testsuite/27_io/basic_stringstream/cons/wchar_t/string_view.cc: New tests.
[Bug libstdc++/119741] [C++26] Implement P2495R3, Interfacing stringstreams with string_view
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119741 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED
[Bug libstdc++/119741] [C++26] Implement P2495R3, Interfacing stringstreams with string_view
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119741 Andrew Pinski changed: What|Removed |Added Keywords||c++26 Status|UNCONFIRMED |NEW Last reconfirmed||2025-04-17 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- .
