|
Boost Users : |
From: Joel FALCOU (joel.falcou_at_[hidden])
Date: 2008-07-19 16:51:11
Steven Watanabe a écrit :
> Strange as it may seem, fusion::transform is not
> the right tool in this case, mpl::transform is what you
> want. fusion::transform is lazy. It returns a transform_view.
> mpl::transform works because fusion sequences /are/ mpl
> sequences. The default behavior of mpl::transform
> is to preserve the input sequence type. i.e. transforming
> an mpl::vector gives an mpl::vector, transforming an mpl::list
> gives an mpl::list, and transforming a fusion::vector gives
> a fusion::vector.
>
I just read the parts about the lazyness of fusion transformation. It
indeed escpaed me for a few seconds.
So basically the fusion transform are more suited for the runtime aprt
of the code rather than the compile-time one ?
-- Joel FALCOU Research Engineer @ Institut d'Electronique Fondamentale Université PARIS SUD XI France
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net