
23 Sep
2004
23 Sep
'04
6:58 a.m.
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