void ana_network_manager::compress_config( const config& cfg, std::ostringstream& out) { boost::iostreams::filtering_stream<boost::iostreams::output> filter; filter.push(boost::iostreams::gzip_compressor()); filter.push(out); write(filter, cfg); out.flush(); }