22 Nov
2005
22 Nov
'05
5:22 a.m.
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