Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2004-09-23 01:58:02

Vladimir Prus wrote:

> > More sophisticated constructs like the list_ would help in
> outputting
> > container structures:
> >
> > vector<int> v = ...;
> > generate(list_(',', int_)[phoenix::const_(v)], someoutputiter);
> >
> > outputs a comma separeted list of integers, and so on.
> Do we need 'int_' here. With long class names, the expression
> will become huge. Is it required to specify the type of the
> object to be output?

Probably not in this case. Seems I gave a bad example ;-)
As I've said, it's still in the stage of brainstorming, so any ideas and
comments are very welcome.

Regards Hartmut

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