|
Boost : |
From: Tito Villalobos (tvillalobos_at_[hidden])
Date: 2004-09-23 22:17:13
Thank you for mentioning this code. I have looked for a tuple
"for_each" as well. I looked at the fusion code, and I noticed there
is quite a bit of similiarity in functions to mpl sequences. Does this
mean that tuples will work with mpl sequences, so that a tuple
implements all the required interfaces for mpl?
Thanks
David Abrahams wrote:
>"Maxim Yegorushkin" <e-maxim_at_[hidden]> writes:
>
>
>
>>I was working on some code where I got some parameters as pairs of
>>strings [name, value]. In my code I needed to convert those values to
>>int's, doubles, etc (i.e. deserialize). And I wanted to convert them
>>in bunch. I thought it was a great job for lexical_cast and
>>tuple::tie.
>>
>>The only thing I missed was something like for_each for tuples. Is
>>there going to be such a mechanism?
>>
>>
>
>Yeah. After this release we're replacing Boost tuples with the
>fusion library (see boost/spirit/fusion), which has for_each and much
>much more.
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk