|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2008-03-03 01:03:24
Author: turkanis
Date: 2008-03-03 01:03:24 EST (Mon, 03 Mar 2008)
New Revision: 43457
URL: http://svn.boost.org/trac/boost/changeset/43457
Log:
fixed copy/paste errors
Text files modified:
branches/iostreams_dev/libs/iostreams/doc/tutorial/container_sink.html | 6 +++---
branches/iostreams_dev/libs/iostreams/doc/tutorial/writing_devices.html | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
Modified: branches/iostreams_dev/libs/iostreams/doc/tutorial/container_sink.html
==============================================================================
--- branches/iostreams_dev/libs/iostreams/doc/tutorial/container_sink.html (original)
+++ branches/iostreams_dev/libs/iostreams/doc/tutorial/container_sink.html 2008-03-03 01:03:24 EST (Mon, 03 Mar 2008)
@@ -66,7 +66,7 @@
<P>Here sink
is a convenience base class which provides the member types <CODE>char_type</CODE> and <CODE>category</CODE>, as well as no-op implementations of member functions <CODE>close</CODE> and <CODE>imbue</CODE>, not needed here.
-<P>You're now ready to write your <CODE>container_source</CODE>.</P>
+<P>You're now ready to write your <CODE>container_sink</CODE>.</P>
<PRE CLASS="broken_ie"><SPAN CLASS='preprocessor'>#include</SPAN> <SPAN CLASS='literal'><algorithm></SPAN> <SPAN CLASS='comment'>// copy, min</SPAN>
<SPAN CLASS='preprocessor'>#include</SPAN> <SPAN CLASS='literal'><iosfwd></SPAN> <SPAN CLASS='comment'>// streamsize</SPAN>
@@ -96,7 +96,7 @@
<UL>
<LI>The member type <CODE>char_type</CODE> is defined to be equal to the containers's <CODE>value_type</CODE>;
<LI>The member type <CODE>category</CODE> tells the Iostreams library that <CODE>container_sink</CODE> is a model of Sink;
-<LI>A <CODE>container_source</CODE> can be constructed from a instance of <CODE>Container</CODE>, which is passed and stored by reference, and accessible <I>via</I> the member function <CODE>container()</CODE>; and
+<LI>A <CODE>container_sink</CODE> can be constructed from a instance of <CODE>Container</CODE>, which is passed and stored by reference, and accessible <I>via</I> the member function <CODE>container()</CODE>; and
<LI>The implementation of <CODE>write()</CODE> simply appends the characters in the specified buffer to the underlying container using the container's <CODE>insert</CODE> funcion,
</UL>
@@ -105,7 +105,7 @@
<PRE CLASS="broken_ie"><SPAN CLASS='preprocessor'>#include</SPAN> <SPAN CLASS='literal'><cassert></SPAN>
<SPAN CLASS='preprocessor'>#include</SPAN> <SPAN CLASS='literal'><string></SPAN>
<SPAN CLASS='preprocessor'>#include</SPAN> <A CLASS="HEADER" HREF="../../../../boost/iostreams/stream.hpp"><SPAN CLASS='literal'><boost/iostreams/stream.hpp></SPAN></A>
-<SPAN CLASS='preprocessor'>#include</SPAN> <A CLASS="HEADER" HREF="../../example/container_device.hpp"><SPAN CLASS='literal'><libs/iostreams/example/container_device.hpp></SPAN></A> <SPAN CLASS='comment'>// container_source</SPAN>
+<SPAN CLASS='preprocessor'>#include</SPAN> <A CLASS="HEADER" HREF="../../example/container_device.hpp"><SPAN CLASS='literal'><libs/iostreams/example/container_device.hpp></SPAN></A> <SPAN CLASS='comment'>// container_sink</SPAN>
<SPAN CLASS='keyword'>namespace</SPAN> io = boost::iostreams;
<SPAN CLASS='keyword'>namespace</SPAN> ex = boost::iostreams::example;
Modified: branches/iostreams_dev/libs/iostreams/doc/tutorial/writing_devices.html
==============================================================================
--- branches/iostreams_dev/libs/iostreams/doc/tutorial/writing_devices.html (original)
+++ branches/iostreams_dev/libs/iostreams/doc/tutorial/writing_devices.html 2008-03-03 01:03:24 EST (Mon, 03 Mar 2008)
@@ -51,8 +51,8 @@
<SPAN CLASS='keyword'>int</SPAN> main()
{
- io::stream_buffer<file_sink> buf(<SPAN CLASS='literal'>"log.txt"</SPAN>);
- std::ostream out(&buf);
+ io::stream_buffer<io::file_sink> buf(<SPAN CLASS='literal'>"log.txt"</SPAN>);
+ std::ostream out(&buf);
<SPAN CLASS='comment'>// out writes to log.txt</SPAN>
}</PRE>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk