Re: [Boost-bugs] [Boost C++ Libraries] #1422: const_iterator does not equate to value_type (or const value_type)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1422: const_iterator does not equate to value_type (or const value_type)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-17 20:52:17


#1422: const_iterator does not equate to value_type (or const value_type)
--------------------------------------------------+-------------------------
  Reporter: Bill Buklis <boostuser_at_[hidden]> | Owner: nesotto
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: ptr_container
   Version: Boost 1.34.1 | Severity: Problem
Resolution: invalid | Keywords: ptr_map, ptr_container, const_iterator
--------------------------------------------------+-------------------------
Changes (by nesotto):

  * status: new => closed
  * resolution: => invalid

Comment:

 If you replace the last line with

 BOOST_MAP::const_reference bcvt = *bcfirst;

 it should work.

 Since a major design goal was to propagate constness, your line can never
 be made to work, unfortunately.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1422#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:49:57 UTC