Boost C++ Libraries: Ticket #11752: basic_null_device::read returns 0 but -1 is expected https://svn.boost.org/trac10/ticket/11752 <p> Documentation: </p> <pre class="wiki">basic_null_device::read "Returns -1. Enabled if Mode refines input." </pre><p> Code: </p> <pre class="wiki">template&lt;typename Ch, typename Mode&gt; class basic_null_device { public: ... std::streamsize read(Ch*, std::streamsize) { return 0; } ... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11752 Trac 1.4.3 Edward Diener Fri, 09 Dec 2016 01:34:03 GMT <link>https://svn.boost.org/trac10/ticket/11752#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11752#comment:1</guid> <description> <p> This has been fixed in the current 'develop' branch. </p> </description> <category>Ticket</category> </item> </channel> </rss>