Opened 7 years ago

Last modified 7 years ago

#11521 new Bugs

Cannot create basic_vectorstream<std::vector<char>> in Boost 1.55+

Reported by: anonymous Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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

Attachments (1)

example.cpp (957 bytes ) - added by anonymous 7 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 7 years ago

Attachment: example.cpp added

comment:1 by anonymous, 7 years ago

Sorry - formatting terrible. Added a file attachment which keeps comments etc.

comment:2 by viboes, 7 years ago

Component: Noneinterprocess
Owner: set to Ion Gaztañaga
Note: See TracTickets for help on using tickets.