Boost C++ Libraries: Ticket #3839: [iostreams]write.hpp:write_device_impl<ostream_tag> tries access non-member f https://svn.boost.org/trac10/ticket/3839 <p> In the boost/iostreams/write.hpp file, in template specialization: </p> <blockquote> <p> struct write_device_impl&lt;ostream_tag&gt; </p> </blockquote> <p> the line: </p> <blockquote> <p> return !traits_type::eq_int_type( t.rdbuf()-&gt;s.sputc(), </p> </blockquote> <p> should be changed to: </p> <blockquote> <p> return !traits_type::eq_int_type( t.rdbuf()-&gt;sputc(c), </p> </blockquote> <p> because a streambuf has no s member and the proposed changed reflects what's done elsewhere in the same file. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3839 Trac 1.4.3 Steven Watanabe Sat, 27 Feb 2010 00:52:12 GMT <link>https://svn.boost.org/trac10/ticket/3839#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3839#comment:1</guid> <description> <p> It disturbs me that the tests don't catch this. Do you have a small test case that fails because of this? </p> </description> <category>Ticket</category> </item> <item> <author>cppljevans@…</author> <pubDate>Sat, 27 Feb 2010 05:18:19 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/3839 https://svn.boost.org/trac10/ticket/3839 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">compose_indent_ostream~1.4~.cpp</span> </li> </ul> <p> demo of bug </p> Ticket cppljevans@… Sat, 27 Feb 2010 05:36:19 GMT attachment set https://svn.boost.org/trac10/ticket/3839 https://svn.boost.org/trac10/ticket/3839 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">indent.hpp</span> </li> </ul> <p> file #included by previous attachment </p> Ticket cppljevans@… Sat, 27 Feb 2010 21:17:20 GMT attachment set https://svn.boost.org/trac10/ticket/3839 https://svn.boost.org/trac10/ticket/3839 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ticket3839~demo.cpp</span> </li> </ul> <p> simpler bug demo </p> Ticket Daniel James Sat, 06 Mar 2010 15:17:39 GMT <link>https://svn.boost.org/trac10/ticket/3839#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3839#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/60228" title="Fix write_device_impl&lt;ostream_tag&gt; And enchance the newline tests so ...">[60228]</a>) Fix write_device_impl&lt;ostream_tag&gt; </p> <p> And enchance the newline tests so that they test it. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3839" title="#3839: Bugs: [iostreams]write.hpp:write_device_impl&lt;ostream_tag&gt; tries access ... (closed: fixed)">#3839</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 06 Mar 2010 15:18:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3839#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3839#comment:3</guid> <description> <p> I've added a test to newline_tests, but it would be better if we had some more direct tests for write.hpp. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 12 Mar 2010 15:19:10 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/3839#comment:4 https://svn.boost.org/trac10/ticket/3839#comment:4 <ul> <li><strong>owner</strong> set to <span class="trac-author">Jonathan Turkanis</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">iostreams</span> </li> </ul> Ticket Daniel James Fri, 12 Mar 2010 19:36:34 GMT owner, status changed https://svn.boost.org/trac10/ticket/3839#comment:5 https://svn.boost.org/trac10/ticket/3839#comment:5 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jonathan Turkanis</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket anonymous Sat, 13 Mar 2010 16:19:46 GMT milestone changed https://svn.boost.org/trac10/ticket/3839#comment:6 https://svn.boost.org/trac10/ticket/3839#comment:6 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.42.0</span> → <span class="trac-field-new">Boost 1.43.0</span> </li> </ul> Ticket Daniel James Wed, 17 Mar 2010 00:23:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3839#comment:7 https://svn.boost.org/trac10/ticket/3839#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/60666" title="Merge iostreams. - Fix write_device_impl&lt;ostream_tag&gt;. Fixes #3839 ...">[60666]</a>) Merge iostreams. </p> <ul><li>Fix write_device_impl&lt;ostream_tag&gt;. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3839" title="#3839: Bugs: [iostreams]write.hpp:write_device_impl&lt;ostream_tag&gt; tries access ... (closed: fixed)">#3839</a> </li><li>Fix error checks after calling <a class="missing wiki">SetFilePointer</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3953" title="#3953: Bugs: [boost][iostreams] mapped_file bug on Win32? (closed: fixed)">#3953</a> </li><li>Gzip filter shouldn't require its source to be peekable. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3723" title="#3723: Bugs: gzip_docompressor error - basic_array_source no putback member (closed: fixed)">#3723</a>. </li><li>In <code>position_to_offset</code>, only cast to <code>stream_offset</code> after calculating <code>_Myoff</code>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3969" title="#3969: Patches: position_to_offset() is broken for Microsoft Visual C++/Dinkumware (closed: fixed)">#3969</a>. </li><li>ptrdiff_t is in std. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2505" title="#2505: Bugs: iostreams/test/grep_test.cpp assumes that ptrdiff_t is in the global ... (closed: fixed)">#2505</a>. </li></ul> Ticket