Subject: Re: [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-19 04:56:39
#10370: Iterating over ptr_map type is largely broken in 1.56
--------------------------------+---------------------------
Reporter: scottbgoldblatt@⦠| Owner: nesotto
Type: Bugs | Status: new
Milestone: To Be Determined | Component: ptr_container
Version: Boost 1.56.0 | Severity: Showstopper
Resolution: | Keywords: ptr_map
--------------------------------+---------------------------
Changes (by eric_niebler):
* keywords: foreach,ptr_map => ptr_map
* owner: eric_niebler => nesotto
* component: foreach => ptr_container
Comment:
This test case shows the problem is specific to ptr_container and has
nothing to do with `BOOST_FOREACH`.
{{{
#include <boost/ptr_container/ptr_map.hpp>
int main()
{
typedef boost::ptr_map<int, int> test_map_type;
test_map_type test_map;
test_map_type::const_reference r = *test_map.begin();
}
}}}
For me, this gives:
{{{
1>f:\scratch\scratch\main.cpp(9): error C2440: 'initializing' : cannot
convert from 'boost::ptr_container_detail::ref_pair<F,S>' to
'boost::ptr_container_detail::ref_pair<F,S>'
1> with
1> [
1> F=int
1> , S=int *const
1> ]
1> and
1> [
1> F=int
1> , S=const int *const
1> ]
1> No constructor could take the source type, or constructor
overload resolution was ambiguous
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10370#comment:1> 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