mirror of
https://github.com/boostorg/io.git
synced 2025-07-31 20:54:29 +02:00
Added notes on interaction of different savers
[SVN r20818]
This commit is contained in:
@@ -215,7 +215,7 @@ attribute back to the saved value.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>boost::io::basic_ios_iostate_saver<Ch, Tr></code></td>
|
||||
<td>Failure state of the stream <a href="#Note1">[1]</a></td>
|
||||
<td>Failure state of the stream <a href="#Note1">[1]</a>, <a href="#Note2">[2]</a></td>
|
||||
<td><code>std::ios_base::iostate</code></td>
|
||||
<td><code>rdstate</code></td>
|
||||
<td><code>clear</code></td>
|
||||
@@ -268,11 +268,13 @@ attribute back to the saved value.</p>
|
||||
<li>When the associated stream buffer is changed, the stream's
|
||||
failure state set is reset to "good" if the given stream
|
||||
buffer's address is non-NULL, but the "bad" failure
|
||||
state is set if that address is NULL. Given a NULL stream
|
||||
buffer address, an exception is thrown if the "bad"
|
||||
failure state is being watched. This could mean that the <a
|
||||
name="Note2">constructor or destructor of this class template
|
||||
may throw</a>.</li>
|
||||
state is set if that address is NULL. This means that a saved
|
||||
failure state of "good" may be restored as "bad"
|
||||
if the stream is stripped of an associated stream buffer. Worse,
|
||||
given a NULL stream buffer address, an exception is thrown if the
|
||||
"bad" failure state is being watched. This could mean
|
||||
that the <a name="Note2">constructor or destructor of these class
|
||||
templates may throw</a>.</li>
|
||||
<li>The <a name="Note3">saver for the locale uses the
|
||||
<code>std::basic_ios<Ch, Tr></code> class to extract their
|
||||
information</a>, although it could have used the functionality
|
||||
@@ -431,6 +433,6 @@ int main()
|
||||
<p>Copyright 2002 Daryle Walker. Use, modification, and distribution
|
||||
are subject to the Boost Software License, Version 1.0. (See accompanying
|
||||
file <a href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or a copy at
|
||||
<<a href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>>.</p>
|
||||
<<a href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>>.)</p>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user