Boost C++ Libraries: Ticket #10683: Boost.Iostreams: typos in the doc https://svn.boost.org/trac10/ticket/10683 <p> <a href="http://www.boost.org/doc/libs/1_56_0/libs/iostreams/doc/tutorial/shell_comments_filters.html">http://www.boost.org/doc/libs/1_56_0/libs/iostreams/doc/tutorial/shell_comments_filters.html</a> reads </p> <p> "unix2dos_stdio_filter can be used in place of shell_comments_input_filter and shell_comments_output_filter" </p> <p> It should read (first id is changed): </p> <p> "shell_comments_stdio_filter can be used in place of shell_comments_input_filter and shell_comments_output_filter" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10683 Trac 1.4.3 akim demaille <akim@…> Tue, 04 Nov 2014 09:13:27 GMT <link>https://svn.boost.org/trac10/ticket/10683#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10683#comment:1</guid> <description> <p> In <a href="http://www.boost.org/doc/libs/1_56_0/libs/iostreams/doc/index.html">http://www.boost.org/doc/libs/1_56_0/libs/iostreams/doc/index.html</a>, one reads </p> <pre class="wiki"> template&lt;typename Sink&gt; std::streamsize write(Sink&amp; dest, const char* s, std::streamsize n) { std::streamsize z; for (z = 0; z &lt; n; ++z) { int c = s[z]; skip_ = c == comment_char_ ? true : c == '\n' ? false : skip_; if (skip_) continue; if (!iostreams::put(dest, c)) break; } return z; } </pre><p> You may want to declare c as a char here, not an int. As a newbie to Boost.Iostreams, I'm careful at spotting where char and int are expected, and it would help to have just the right one where needed, not something too general. </p> <p> Just 0.000002€ :) </p> </description> <category>Ticket</category> </item> </channel> </rss>