Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2019-12-06 14:18:48


On Fri, 6 Dec 2019 at 08:55, Andres Llopis via Boost
<boost_at_[hidden]> wrote:
>
> Hi everyone,
>
> I am trying to make my own version of combine so that it works also with std::tuples. Someone on slack suggested that the zip iterator should be able to handle it properly. My attempt however fails when trying to use the metafunction tuple_of_references::type for the std::tuple of iterators. This is what I tried (https://godbolt.org/z/Ymjtvn):

zip_iterator works with fusion sequences.
Make sure you include boost/fusion/adapted/std_tuple.hpp

Also std::get<N>(x), not x.get<N>().


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk