Boost C++ Libraries: Ticket #13075: gzip_decompressor cannot be pushed to filtering_stream if provided with input_seekable https://svn.boost.org/trac10/ticket/13075 <p> There is a ticket regarding making filtering stream seekable: <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/2449"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/2449</a> However, the solution doesn't apply to situations where gzip decompressor is pushed. </p> <p> boost::iostreams::filtering_stream&lt;boost::iostreams::input_seekable&gt; instream; boost::iostreams::file_source file(filename, std::ios_base::in | std::ios_base::binary); instream.push(boost::iostreams::gzip_decompressor()); <em> -&gt; fails HERE instream.push(file); </em></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13075 Trac 1.4.3 anonymous Sat, 13 Jan 2018 17:36:00 GMT <link>https://svn.boost.org/trac10/ticket/13075#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13075#comment:1</guid> <description> <p> Maybe I misunderstand, but that is correct behaviour. Seeking in compressed streams is not possible in a reasonable way, so you should not be able to push a decompressor if you need the input to be seekable. </p> </description> <category>Ticket</category> </item> </channel> </rss>