Skip to content

Instantly share code, notes, and snippets.

@rowanj
Created May 28, 2012 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rowanj/2816963 to your computer and use it in GitHub Desktop.
Save rowanj/2816963 to your computer and use it in GitHub Desktop.
// istreamLikeClass is
boost::iostreams::filtering_streambuf<boost::iostreams::input> in;
boost::iostreams::gzip_decompressor decompressor;
in.push(decompressor);
in.push(is);
stringstream ss (stringstream::in | stringstream::out);
boost::iostreams::copy(in, ss);
string parsedString = ss.str();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment