Subject: Re: [boost] [iterators] zip_iterator doesn't work with GCC's TR1 tuple?
From: Peter Bartlett (pete_at_[hidden])
Date: 2008-12-09 11:45:51
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk