On Thu, Jan 27, 2011 at 1:04 PM, TONGARI <tongari95@gmail.com> wrote:Yes, I replaced all my uses of unpack with make_fused and everything
>> boost::for_each(zip(images, offsets) | strided(2),
>> unzip(AddToMosaic(mosaic)));
>> [...]
>> The unpack() function would be useful for the zip_iterator as well.
>
> Is Fusion's make_fused() the equivalent?
looks like it's working. Thanks for pointing it out. If the range
authors are interested I'll probably post my code with unpack (which
depends only on boost::result_of) and let them make the call whether
they want to introduce a fusion dependency.
This does raise a naming question. MPL uses unpack_args, Fusion uses
make_fused. I thought unpack was nice (I also like unzip), but I'm
not dead-set on any particular name. Any thoughts?
Thanks,
Nate