Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4107: ptr_map::mapped_type incorrect
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-05 13:23:42
#4107: ptr_map::mapped_type incorrect
-----------------------------------+----------------------------------------
Reporter: olafvdspek@⦠| Owner: nesotto
Type: Bugs | Status: closed
Milestone: Boost 1.43.0 | Component: ptr_container
Version: Boost 1.42.0 | Severity: Problem
Resolution: invalid | Keywords:
-----------------------------------+----------------------------------------
Comment (by c_crickmar <chris@â¦>):
The value_type would have to be translated from std::pair<Key, T*> to
std::pair<Key, T> which couldn't be done without copying T. I suppose a
reference wrapper could be used but then the value type is std::pair<Key,
boost::reference_wrapper<T> > which I don't think is an improvement.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4107#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:04 UTC