Boost logo

Boost :

Subject: Re: [boost] [Fusion] Some ideas
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2013-02-02 23:00:21


> >> I think it'd be nice to have:
> >> * Auxiliary function 'eval' to force the evaluation of transform-like view
> >> e.g. fusion::eval(fusion::**transform(a, b, some_void_return_ftor))
> >
> > How's that any different from as_vector, as_list, etc. ?
>
> They cannot take voids.
>
> > Also, what will be the container type of the result of "eval" ?
>
> Void. Just to trigger each transformation.

Why not use for_each [1] instead of transform then?

Regards,
Nate

[1] http://www.boost.org/doc/libs/1_52_0/libs/fusion/doc/html/fusion/algorithm/iteration/functions/for_each.html
                                               


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