Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6089: Non const & used in ptr_map::insert
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-17 22:15:34
#6089: Non const & used in ptr_map::insert
-------------------------------+---------------------------
Reporter: jdoliner@⦠| Owner: nesotto
Type: Bugs | Status: new
Milestone: To Be Determined | Component: ptr_container
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------
Comment (by m.champlon@â¦):
I believe this is actually a feature, see
www.boost.org/libs/ptr_container/doc/faq.html#why-does-ptr-map-t-insert-
replace-take-two-arguments-the-key-and-the-pointer-instead-of-one-std-
pair-and-why-is-the-key-passed-by-non-const-reference for a rationale.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6089#comment:3> 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:20 UTC