Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-23 01:21:49


Hi Hartmut,

> 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?

- Volodya


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