只是想用 bzip2 压缩一个字符串,这样我就可以用 ReadFile 通过管道发送它。
以下行给我带来了以下编译错误。
in.push(uncompressed_string);
错误 6 错误 C2027:使用未定义类型 '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);