Boost logo

Boost :

Subject: Re: [boost] [iostreams] in vault
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-01-11 07:14:31

----- Original Message -----
From: "Larry Evans" <cppljevans_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, January 09, 2010 5:26 PM
Subject: [boost] [iostreams] in vault

> The .zip file in subject is here:
> It includes a boost/iostreams/filter/indent.hpp and
> boost/iostreams/utility/indent_filtering_ostream.hpp.
> The latter uses the former to allow indenting and undenting
> a stream.
> Is there any interest in installing this in the iostreams library?


On the example I see that the ++ and -- are not pairwised.
int main(void)
    boost::iostreams::indent_filtering_ostream<> mout(std::cout);
+ ++mout;
+ ++mout;
- --mout;
    unsigned u=22;
    float f=3.1416;
- --mout;
- --mout;
    return 0;

Shouldn't a scoped_indent class helps on this?

Boost list run by bdawes at, gregod at, cpdaniel at, john at