AMDG Joel FALCOU wrote:
I started porting over some old codes that used hand-made MPL<->concrete object code to Fusion. I'm currently trying to have the following to work with no results so far :
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.
#include