Boost logo

Boost Users :

Subject: Re: [Boost-users] mpl/fusion: metafunction to 'rangify'
From: Christopher Schmidt (mr.chr.schmidt_at_[hidden])
Date: 2009-12-22 17:49:55


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


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