Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams] How can I use the Stream Insertion operator (<<) with a filtering_streambuf?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2013-07-29 12:27:41


On 07/29/13 11:10, Larry Evans wrote:
[snip]
> BTW, I tried modifying Ken's code to use filtering_ostream instead
> of filtering_streambuf, and it worked. I also removed the ios_base
> flags and it still worked. Then I tried using stringstream instead
> of filestream and it no longer worked. Anyone have any clues about
> why stringstream doesn't work? The code is attached. With the
> attached code and attached Jamfile.v2, and with:
>
> #define USE_STRINGSTRM
>
> in the code, the KenApplebyStrm.output produced by bjam is
> in the next attachment.
> In contrast, with:
> //#define USE_STRINGSTRM
> int the code, the KenApplebyStrm.output produced by bjam is
> in the last attachment.
[snip]
OOPS. The code attached previously used streambuf instead of
stream. The current attachment uses stream.




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