[Boost-bugs] [Boost C++ Libraries] #11521: Cannot create basic_vectorstream<std::vector<char>> in Boost 1.55+

Subject: [Boost-bugs] [Boost C++ Libraries] #11521: Cannot create basic_vectorstream<std::vector<char>> in Boost 1.55+
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-01 23:59:07


#11521: Cannot create basic_vectorstream<std::vector<char>> in Boost 1.55+
-----------------------+------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.55.0
 Severity: Problem | Keywords:
-----------------------+------------------------------
 Moving from Boost 1.54 to 1.55 (and 1.58) I now get this error during
 compilation (VS2010):

 void GzipDecompression::Decompress(const unsigned char * src, int length)
 {
   if(src)
   {
       // 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<char> Device;
       boost::iostreams::stream_buffer<Device> buffer((char *)src, length);

       // Inflate using the GZIP filter
       filtering_streambuf<input> in;
       in.push(gzip_decompressor());
       in.push(buffer);

       // Get the result into a vector
       boost::interprocess::basic_vectorstream<std::vector<char>>
 vectorStream;
       copy(in, vectorStream);
       std::vector<char> output(vectorStream.vector());
   }
 }

 error C2243: 'type cast' : conversion from
 'boost::interprocess::basic_vectorstream<CharVector> *' to 'volatile const
 std::basic_streambuf<_Elem,_Traits> *' exists, but is inaccessible
 c:\boost\boost_1_55_0\boost\iostreams

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11521>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC