diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-06-25 21:33:02 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-06-28 13:34:49 +0100 |
commit | e5c422b7d8af6f42f8ab230133210742b7ac5661 (patch) | |
tree | f6a15d03dfdf5321b25267df14e1f92b575ec09a /libstdc++-v3/doc | |
parent | b838641bb0d4de5b25128b54012155ab46f452d0 (diff) | |
download | gcc-e5c422b7d8af6f42f8ab230133210742b7ac5661.zip gcc-e5c422b7d8af6f42f8ab230133210742b7ac5661.tar.gz gcc-e5c422b7d8af6f42f8ab230133210742b7ac5661.tar.bz2 |
libstdc++: Implement LWG 415 for std::ws
For C++11 std::ws changed to be an unformatted input function, meaning
it constructs a sentry and sets badbit on exceptions.
libstdc++-v3/ChangeLog:
* doc/xml/manual/intro.xml: Document LWG 415 change.
* doc/html/manual/bugs.html: Regenerate.
* include/bits/istream.tcc (ws): Create sentry and catch
exceptions.
* testsuite/27_io/basic_istream/ws/char/lwg415.cc: New test.
* testsuite/27_io/basic_istream/ws/wchar_t/lwg415.cc: New test.
Diffstat (limited to 'libstdc++-v3/doc')
-rw-r--r-- | libstdc++-v3/doc/html/manual/bugs.html | 4 | ||||
-rw-r--r-- | libstdc++-v3/doc/xml/manual/intro.xml | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/doc/html/manual/bugs.html b/libstdc++-v3/doc/html/manual/bugs.html index 7b49e4a..38594a9 100644 --- a/libstdc++-v3/doc/html/manual/bugs.html +++ b/libstdc++-v3/doc/html/manual/bugs.html @@ -245,6 +245,10 @@ </p></dd><dt><a id="manual.bugs.dr409"></a><span class="term"><a class="link" href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#409" target="_top">409</a>: <span class="emphasis"><em>Closing an fstream should clear the error state</em></span> </span></dt><dd><p>Have <code class="code">open</code> clear the error flags. + </p></dd><dt><a id="manual.bugs.dr415"></a><span class="term"><a class="link" href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#415" target="_top">415</a>: + <span class="emphasis"><em>Behavior of std::ws</em></span> + </span></dt><dd><p>Change it to be an unformatted input function + (i.e. construct a sentry and catch exceptions). </p></dd><dt><span class="term"><a class="link" href="../ext/lwg-closed.html#431" target="_top">431</a>: <span class="emphasis"><em>Swapping containers with unequal allocators</em></span> </span></dt><dd><p>Implement Option 3, as per N1599. diff --git a/libstdc++-v3/doc/xml/manual/intro.xml b/libstdc++-v3/doc/xml/manual/intro.xml index 45762ca..86ed696 100644 --- a/libstdc++-v3/doc/xml/manual/intro.xml +++ b/libstdc++-v3/doc/xml/manual/intro.xml @@ -634,6 +634,13 @@ requirements of the license of GCC. <listitem><para>Have <code>open</code> clear the error flags. </para></listitem></varlistentry> + <varlistentry xml:id="manual.bugs.dr415"><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#415">415</link>: + <emphasis>Behavior of std::ws</emphasis> + </term> + <listitem><para>Change it to be an unformatted input function + (i.e. construct a sentry and catch exceptions). + </para></listitem></varlistentry> + <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-closed.html#431">431</link>: <emphasis>Swapping containers with unequal allocators</emphasis> </term> |