|
Boost Users : |
Subject: Re: [Boost-users] [fusion] incremental zipping
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-11-19 18:16:36
On 11/20/2011 6:44 AM, Gennadiy Rozental wrote:
> Christopher Schmidt <mr.chr.schmidt <at> online.de> writes:
>
>> auto v=push_back(
>> push_back(
>> push_back(
>> make_vector(),boost::ref(a)),boost::ref(b)),boost::ref(c));
>> auto z=zip_view<decltype(v)>(v);
>
>
> This is not what I want. Let @ denote zipping operation. I want:
>
> x = a @ b // x == ((0,1),(1,2))
> ...
> y = x @ c // y = ((0,1,2),(1,2,3))
>
> Right now I am getting y = (((0,1),2),((1,2),3))
>
> Gennadiy
>
> P.S. You example does not work for me push_back.hpp does not build under MSVC10
Builds fine with me using both VC2010 and g++.
Regards,
-- Joel de Guzman http://www.boostpro.com http://boost-spirit.com
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