Boost logo

Boost :

Subject: Re: [boost] [iostreams]ANNOUNCE:indent_filtering_ostream.zip in vault
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-01-13 15:05:15


On 01/13/10 13:46, Larry Evans wrote:
[snip]
> IIRC, the last element printed in a struct has no trailing
> nl. The task of appending the nl is left to the caller. This
> protocol is illustrated by the attachment,

Actually, the new attachment looks remarkably similar to your's
except, instead of:

   << nl << element << "\n";

there's:

   << "\n" << element;

and there's no special case to test for the last element.
IOW, the newlines prefix each element on the
statement instead of trail each element.




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk