#include #include #include #include #include using namespace std; using namespace boost::iostreams; int main(int argc, char** argv){ filtering_istream fstr; fstr.push(gzip_decompressor()); fstr.push(cin); string line; while(fstr.good()){ getline(fstr, line); cout << line; } //boost::iostreams::copy(fstr, cout); return 0; }