Opened 15 years ago

Closed 13 years ago

Last modified 12 years ago

#1517 closed Feature Requests (fixed)

zip_iterator can't zip Bidirectional Input iterators

Reported by: Shunsuke Sogame <pstade.mb@…> Owned by: Dave Abrahams
Milestone: Boost 1.36.0 Component: iterator
Version: Boost Development Trunk Severity: Problem
Keywords: zip_iterator iterator Cc:

Description

zip_iterator can't zip BidirectionalInput Iterators. See nonzippable.cpp, which doesn't compile.

Attachments (2)

nonzippable.cpp (500 bytes ) - added by Shunsuke Sogame <pstade.mb@…> 15 years ago.
An example which doesn't compile
zip_iterator_traversal.patch (495 bytes ) - added by Shunsuke Sogame <pstade.mb@…> 15 years ago.
The patch. Caution: this is not confirmed by the author yet.

Download all attachments as: .zip

Change History (5)

by Shunsuke Sogame <pstade.mb@…>, 15 years ago

Attachment: nonzippable.cpp added

An example which doesn't compile

comment:1 by Charles Brockman <cmbrockman@…>, 15 years ago

It should be noted that additional discussion of the topic of this ticket can be found in the boost-users mailing list thread started on 2008-02-17 with the subject line, Pairing ptr_containers with zip iterators at http://lists.boost.org/boost-users/2008/02/33967.php See also Sogame's message at http://lists.boost.org/Archives/boost/2007/11/130986.php

by Shunsuke Sogame <pstade.mb@…>, 15 years ago

The patch. Caution: this is not confirmed by the author yet.

comment:2 by Dave Abrahams, 13 years ago

Resolution: fixed
Status: newclosed

(In [58012]) category of each component iterator is reduced to a known category before we try to find a minimum. Closes #1517

comment:3 by Daniel James, 12 years ago

(In [70709]) Iterator: merge several changes from trunk.

  • Update iterator_facade test for #1019 (header change already merged).
  • Category of each iterator is reduced to a known category before we try to find a minimum. Fixes #1517.
  • function_input_iterator from Dean Michael Berris. Fixes #2893
  • Fix typo in boost/iterator.hpp. Fixes #3434.
  • Always include add_reference header in iterator adaptor header.

Did not merge changes for #1427.

Note: See TracTickets for help on using tickets.