
Holger Bast wrote:
I want to read line by line from a gzipped document.
getline() is provided by the C++ standard library for use with input streams. The above should compile if you use filtering_stream instead of filtering_streambuf (and possibly make some unrelated changes -- e.g., it doesn't look like "documentFile" is defined).
Thanks for the clarification: when switching from filtering_streambuf to filtering_stream it indeed compiles.
However, getline(in, line) then gives the *compressed* lines, despite the in.push(boost::iostreams::gzip_decompressor());
I don't understand why and how that is happening, any ideas?
Do you have a short, self-contained program that demonstrates the problem? -- Jonathan Turkanis CodeRage http://www.coderage.com