$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-24 11:29:36
"Vladimir Prus" <ghost_at_[hidden]> wrote in message
news:citpi1$bmh$3_at_sea.gmane.org...
> Jonathan Turkanis wrote:
>
> > A. The main building block is the concept of a Formatter (sketched
> > below).
> > There will be a number of built-in formatters, such as
> > 1. sequence_formatter, for formatting objects of a type I.A.1.
> > using
> > specified opening, closing and separator strings
> > 2. nary_formatter<N>, for formatting objects of a type I.A.2. Nary
> > formatters can be specified with expression templates -- e.g.,
> >
> > str("[") << _2 << " : " << _1 << ")"
>
> Forgot to mention in the previous email: I recall that when I was trying to
> write my own code for this task, I found very usefull to number elements of
> a sequence. I still have handwritten code for dumping some data which
> numbers the elements. That's handy when elements are referred by indexes.
>
> I'd like such a formatter to be a part of the library; I know there's such
> example already, but I'd rather see a documented part of a library, not
> just an example.
I think Reece has an example of this. Of course it's easy to do with my
framework too.
Jonathan