Boost logo

Boost :

Subject: Re: [boost] [iterators] zip_iterator doesn't work with GCC's TR1 tuple?
From: Shayne_Fletcher_at_[hidden]
Date: 2008-12-09 18:15:37


David Abrahams wrote on 10/12/2008 02:37:53:

> on Tue Dec 09 2008, David Abrahams <dave-AT-boostpro.com> wrote:
>
> > on Tue Dec 09 2008, Peter Bartlett <pete-AT-pcbartlett.com> wrote:
> >
> >> Quoting Dean Michael Berris <mikhailberis_at_[hidden]>:
> >>
> >>> Has anybody successfully used Boost.Iterator's zip_iterator with TR1
> >>> tuples from GCC's libstdc++?
> >>>
> >>> I keep getting errors like "error: no type named 'head_type' in
'class
> >>> std::tr1::tuple<..." when using TR1 tuples with the zip_iterator
> >>> implementation in Boost 1.35.0 -- am I missing something?
> >>
> >> The implementation of zip_iterator depends on the implementation of
> >> (boost::)tuple. The authors of zip_iterator were aware this was
> sub-optimal and
> >> specifially put all tuple-implementation-specific code in a
> namespace inside the
> >> detail namespace to aid future changes. The code is fairly old
> though.. it would be
> >> interesting to know if the tuple concept is now mature enough to
> admit a generic
> >> implementation.
> >
> > I have a fusion-based implementation checked in on a branch somewhere.
>
> Here:
>
> http://svn.boost.
>
org/svn/boost/branches/zip_iterator_fusion/boost/boost/iterator/zip_iterator.
> hpp

That's very helpful. Thank-you.

-- 
Shayne Fletcher
This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender.
All incoming and outgoing e-mail messages are stored in the Swiss Re Electronic Message Repository. If you do not wish the retention of potentially private e-mails by Swiss Re, we strongly advise you not to use the Swiss Re e-mail account for any private, non-business related communications.

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