Thanks Chris and Joel for your replies.
There is an example (at least a test). You can get that here: libs/fusion/test/algorithm/transform/transform.cpp. The doc also contains an example (see the transform docs)
I was looking at this test. But it doesn't include a test of the transform metafunction, I believe. Correct me if I'm wrong.
This is one of the cases where Fusion differs from MPL. Fusion requires a polymorphic function object for the transform. See the docs on "Polymorphic Function Object".
I would suggest to add an example on the "Polymorphic Function Object" page in the documentation. Also, how about adding an index at the end of the documentation? I would like that a lot.
Having said that, and looking at your code, it seems you do not need value transformation (which is what Polymorphic Function Objects do). All you are doing is type manipulation. I'd suggest you to first work on an mpl sequence. Then, when you get your desired MPL sequence, convert it to a fusion sequence through fusion::as_xxx (see conversions in the docs). fusion::as_xxx can take in any valid MPL sequence. Here's an example:
typedef fusion::result_of::as_list
::type list_of_vectors;
This is what I'm doing right now:
#include <vector>
#include