|
Boost Users : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-11-22 00:22:53
Pedro Lamarão wrote:
> Is there a way to construct a boost::iostreams::stream with the
> ios_base::binary flag?
How line endings are treated is completely dependent upon the Device you pass to
boost::iostreams::stream. Of the Devices provided by the iostreams library, only
the file wrappers (www.boost.org/libs/iostreams/doc/index.html?path=4.2.2.10)
provide line-ending conversions by default.
In general, if you want to enable line-ending conversions for a user-defined
device, you have to compose it with a newline filter
(www.boost.org/libs/iostreams/doc/index.html?path=4.2.10.1).
> I'd be really happier without the line-ending treatment...
-- Jonathan Turkanis www.kangaroologic.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