Subject: Re: [boost] File Handle and FILE* wrappers?
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-12-15 21:29:43
On December 15, 2014 6:25:44 PM EST, Nat Goodspeed <nat_at_[hidden]> wrote:
>Interestingly, I just stumbled across a bit of live legacy code that
>relies on __gnu_cxx::stdio_filebuf to allow constructing an istream or
>ostream from an open FILE*. This does not port to libc++.
>What surprised me was that I could find no support for FILE* in
>Boost.Iostreams. Writing a streambuf isn't rocket science, but I would
>think that this particular use case would be common enough to warrant
>Am I overlooking something?
FILE* is buffered and streambuf provides buffering. You can create a streambif that doesn't actually do any buffering, but it is contrary to the purpose of one.
(Sent from my portable computation engine)