I have a C++ program that links to boost for gunzip compression. It requires the full boost installation (not just the header).
The function (which works 100%) takes a C++ string, compress it in gunzip format and return it. Unfortunately, this code requires full boost to compile and link.
- I would like someone to strip off the code from boost, so I can compile it __without__ boost. That might involve strip out boost header and it's implementation out.
- Alternatively, I am open to another algorithm for doing exactly the same thing without a full boost installation.
std::string compressGZ(const std::string &x)
{
namespace bio = boost::iostreams;
std::stringstream r;
std::stringstream origin(x);
bio::filtering_streambuf out;
out.push(bio::gzip_compressor(bio::gzip_params(bio::gzip::best_compression)));
out.push(origin);
bio::copy(out, r);
return r.str();
}
About the recuiterMember since Oct 5, 2017 Rom
from Paris, France