Just trying to compress a string with bzip2 so that I can send it over a pipe with ReadFile.
The following line earns me the following compile error.
in.push(uncompressed_string);
Error 6 error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE' c:\program files (x86)\boost\boost_1_47\boost\iostreams\chain.hpp 488 1 Agent
boost::iostreams::filtering_streambuf<boost::iostreams::input> in;
ostringstream uncompressed_string;
ostringstream compressed_string;
uncompressed_string << buf;
in.push(boost::iostreams::bzip2_compressor());
in.push(uncompressed_string);
boost::iostreams::copy(uncompressed_string, compressed_string);
The error was due to pushing an output stream into an input filtering stream as its Device.
tested with gcc 4.6.1 and boost 1.46