|
Boost Users : |
From: Jonathan Turkanis (turkanis_at_[hidden])
Date: 2008-02-16 01:26:52
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net