|
Boost Users : |
From: Holger Bast (bast_at_[hidden])
Date: 2008-02-16 23:08:19
>
>>> 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?
Thanks for asking!
While constructing the short, self-contained program I realized that I
have made a stupid mistake: in my email I wrote getline(in, line) but in
my program I had getline(file, line), where "file" was the ifstream and
"in" was the filtering_stream.
So switching from filtering_streambuf to filtering_stream indeed does
the job, thank you very much again for the hint!
Holger
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