
26 Jul
2013
26 Jul
'13
11:39 a.m.
This is how I do it with file_sink: boost::iostreams::filtering_ostream output_file; output_file.push(boost::iostreams::bzip2_compressor(boost::iostreams::bzip2_params(9))); output_file.push(boost::iostreams::file_sink("file.bz2", std::ios_base::binary)); output_file<<"blalba"; I think if you do just this, nothing happen until output_file is destroyed. So enclose in { }. Frédéric