[Boost-bugs] [Boost C++ Libraries] #10370: Iterating over ptr_map type is largely broken in 1.56

Subject: [Boost-bugs] [Boost C++ Libraries] #10370: Iterating over ptr_map type is largely broken in 1.56
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-18 12:51:47


#10370: Iterating over ptr_map type is largely broken in 1.56
-------------------------------+--------------------------
 Reporter: scottbgoldblatt@… | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: foreach
  Version: Boost 1.56.0 | Severity: Showstopper
 Keywords: foreach,ptr_map |
-------------------------------+--------------------------
 Iteration over map fails on most types, except for value. Not sure which
 version this failure began, but definitely present in 1.56

 The following simple snippet will fail:

         typedef boost::ptr_map<int, int> test_map_type;
         test_map_type test_map;


         BOOST_FOREACH(test_map_type::const_reference r, test_vector )
         {

         }

 Will also fail with reference, iterator, const_iterator. boost::tie also
 fails. Can iterate by value, but this does not help with my application
 since the mapped type will be an abstract type (so no clone allocator for
 mapped type)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10370>
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:16 UTC