[Boost-bugs] [Boost C++ Libraries] #5963: Patch [Fixes #5961]: Disallow comparisons of differing iterator types in ptr_container

Subject: [Boost-bugs] [Boost C++ Libraries] #5963: Patch [Fixes #5961]: Disallow comparisons of differing iterator types in ptr_container
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-29 14:10:28


#5963: Patch [Fixes #5961]: Disallow comparisons of differing iterator types in
ptr_container
-------------------------------------------------+--------------------------
 Reporter: Rob Desbois <rob.desbois@…> | Owner: nesotto
     Type: Patches | Status: new
Milestone: To Be Determined | Component: ptr_container
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: iterator, type, compare |
-------------------------------------------------+--------------------------
 Patch removes support for comparing differing iterator types from
 ptr_container's void_ptr_iterator. The comparators in question are == != <
 <= > >=.

 Changes are:
 - Add container type template parameter to void_ptr_iterator. This is what
 ensures compared iterators of differing types are still for the same
 referenced container type.

 - Add self type as template argument to base class for containers
 ptr_array, ptr_circular_buffer, ptr_deque, ptr_list, ptr_set,
 ptr_multiset, ptr_unordered_set, ptr_unordered_multiset, and ptr_vector

 - Pass container type template parameter from sequence_config and
 set_config to iterator typedefs, from ptr_sequence_adapter to
 reversible_ptr_container, and from ptr_set_adapter and
 ptr_multiset_adapter through ptr_set_adapter_base to
 associative_ptr_container

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5963>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC