Boost C++ Libraries: Ticket #10072: filtering_stream::size() is not const https://svn.boost.org/trac10/ticket/10072 <p> According to the documentation at <a href="http://www.boost.org/doc/libs/1_55_0/libs/iostreams/doc/classes/filtering_stream.html">http://www.boost.org/doc/libs/1_55_0/libs/iostreams/doc/classes/filtering_stream.html</a>, filtering_stream::size() should be const, but it is declared non-const. The implementation does not change the class (it calls the const metzhod chain_-&gt;size()). Therefore I believe that the non-constness is an oversight. Please make size() const to match the documentation. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10072 Trac 1.4.3 n.musolino@… Wed, 18 Jan 2017 17:37:21 GMT <link>https://svn.boost.org/trac10/ticket/10072#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10072#comment:1</guid> <description> <p> I recently encountered this problem, and I can submit a patch. Do the iostreams maintainers agree that making this function 'const', in agreement with the documentation, is reasonable? </p> </description> <category>Ticket</category> </item> <item> <author>n.musolino@…</author> <pubDate>Sat, 21 Jan 2017 16:39:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10072#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10072#comment:2</guid> <description> <p> The simple fix is in the pipeline (appears to be in the 'develop' branch as of this date): <a class="ext-link" href="https://github.com/boostorg/iostreams/pull/5"><span class="icon">​</span>https://github.com/boostorg/iostreams/pull/5</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>