Boost C++ Libraries: Ticket #11521: Cannot create basic_vectorstream<std::vector<char>> in Boost 1.55+ https://svn.boost.org/trac10/ticket/11521 <p> Moving from Boost 1.54 to 1.55 (and 1.58) I now get this error during compilation (VS2010): </p> <p> void GzipDecompression::Decompress(const unsigned char * src, int length) { </p> <blockquote> <p> if(src) { </p> <blockquote> <p> <em> Create an input-stream source for the data buffer so we can used the boost filtering buffer std::ifstream inputstream; typedef boost::iostreams::basic_array_source&lt;char&gt; Device; boost::iostreams::stream_buffer&lt;Device&gt; buffer((char *)src, length); </em></p> </blockquote> </blockquote> <blockquote> <blockquote> <p> <em> Inflate using the GZIP filter filtering_streambuf&lt;input&gt; in; in.push(gzip_decompressor()); in.push(buffer); </em></p> </blockquote> </blockquote> <blockquote> <blockquote> <p> <em> Get the result into a vector boost::interprocess::basic_vectorstream&lt;std::vector&lt;char&gt;&gt; vectorStream; copy(in, vectorStream); std::vector&lt;char&gt; output(vectorStream.vector()); </em></p> </blockquote> <p> } </p> </blockquote> <p> } </p> <p> error C2243: 'type cast' : conversion from 'boost::interprocess::basic_vectorstream&lt;<a class="missing wiki">CharVector</a>&gt; *' to 'volatile const std::basic_streambuf&lt;_Elem,_Traits&gt; *' exists, but is inaccessible c:\boost\boost_1_55_0\boost\iostreams </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11521 Trac 1.4.3 anonymous Sun, 02 Aug 2015 00:01:01 GMT attachment set https://svn.boost.org/trac10/ticket/11521 https://svn.boost.org/trac10/ticket/11521 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">example.cpp</span> </li> </ul> Ticket anonymous Sun, 02 Aug 2015 00:01:34 GMT <link>https://svn.boost.org/trac10/ticket/11521#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11521#comment:1</guid> <description> <p> Sorry - formatting terrible. Added a file attachment which keeps comments etc. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 20 Aug 2015 23:06:48 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/11521#comment:2 https://svn.boost.org/trac10/ticket/11521#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ion Gaztañaga</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">interprocess</span> </li> </ul> Ticket