22 Dec
2009
22 Dec
'09
10:49 p.m.
Hicham Mouline schrieb:
I am making small progress in my attempt to generate a new mpl sequence that I will use to read from a stream.
The following code fails to compile: [snip]
You should work with a copy of fusion's trunk. See http://thread.gmane.org/gmane.comp.lib.boost.user/53893/ for more information. Unfortunately there is another problem. mpl::transform internally instantiates mpl::clear. Fusion's implementation of mpl::clear only works for the built-in container. I think fusion's mpl::clear should rather forward to fusion::clear and fusion::clear should return a simple, empty container that models the same category as the sequence to be cleared. At the moment, fusion::clear returns fusion::vector0<> in any case. -Christopher