]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc
libstdc++: Deprecate std::setfill for std::basic_istream [PR109922]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 25 May 2023 09:06:14 +0000 (10:06 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 31 May 2023 12:17:44 +0000 (13:17 +0100)
commit979f8bfd3164d23e6bd192a00e89eb1fc8f5b4a3
treef928418dc10facc25512fb6778ead71674a20c43
parent95e5c38a98cc64a797b1d766a20f8c0d0c807a74
libstdc++: Deprecate std::setfill for std::basic_istream [PR109922]

Prior to N0966 (July 1996) the std::setfill manipulator was specified to
work with both input and output streams. In the final C++98 standard it
is only specified to work with output streams.

We have always supported it for input streams, despite that never being
in the standard, and having no meaning for any input streams defined by
the standard. This commit adds a deprecated attribute to the overload
for input streams, so that we can stop supporting this some day.

libstdc++-v3/ChangeLog:

PR libstdc++/109922
* include/std/iomanip (operator>>(basic_istream&, _Setfill)):
Add deprecated attribute to non-standard overload.
* doc/xml/manual/evolution.xml: Document deprecation.
* doc/html/*: Regenerate.
* testsuite/27_io/manipulators/standard/char/1.cc: Add
dg-warning for expected deprecated warning.
* testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
* testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
* testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
libstdc++-v3/doc/html/index.html
libstdc++-v3/doc/html/manual/api.html
libstdc++-v3/doc/html/manual/appendix.html
libstdc++-v3/doc/html/manual/appendix_porting.html
libstdc++-v3/doc/html/manual/index.html
libstdc++-v3/doc/xml/manual/evolution.xml
libstdc++-v3/include/std/iomanip
libstdc++-v3/testsuite/27_io/manipulators/standard/char/1.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/manipulators/standard/wchar_t/2.cc