Boost logo

Boost Users :

Subject: Re: [Boost-users] Writing large binary files with boost gzip
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2011-04-08 07:43:17


Anders Knudby wrote:
> Many thanks for the quick response. And apologies for being a total
> newbie, but how do I close the stream (and how do I check that it has
> been closed)? With normal iostreams I would just write "out.close();",
> out being the name of the stream. But that doesn't seem to be the way to
> do it for filtering_iostreams?!? And I would think it would close when
> it goes out of scope, but I haven't checked. Any help appreciated. I'm
> pleased it worked for you on Linux, but I'm largely stuck with Windows
> for the time being...

Can you post a complete small example demonstrating the problem? The
destructor should close the stream. The docs for iostreams::stream shows
a close method at
http://www.boost.org/doc/libs/1_46_1/libs/iostreams/doc/index.html.

Please don't top post.

Jeff


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