Boost logo

Boost :

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

On 01/13/10 13:46, Larry Evans wrote:
> 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";


   << "\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, gregod at, cpdaniel at, john at