|
Boost Users : |
Subject: Re: [Boost-users] [Boost.Range] combine, native range-for, and destructuring
From: degski (degski_at_[hidden])
Date: 2018-04-14 23:49:50
On 14 April 2018 at 04:34, John M. Dlugosz via Boost-users <
boost-users_at_[hidden]> wrote:
> I want to go through two vectors at the same time, and the way to do this
> is to "zip" the items from each into a tuple. boost::combine is a function
> for that.
>
I've run into this problem as well, it's a real shame it doesn't work,
because if you would be able to use boost::combine with (C++17) structured
bindings, one can completely abstract away (if it would work) the
zip-iterator (you wouldn't see it even though that's what's happening under
the hood)...
degski
PS: I did not report it because I wasn't sure the problem was not related
to the MS-implementation of structured bindings (this is a while ago), and
I did not want to attract anymore flak for being a ms-boy. It seems it
isn't then.
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