[Boost-bugs] [Boost C++ Libraries] #3878: "ptr_map<T>::auto_type const" acts like "std::auto_ptr<T const>" instead of "std::auto_ptr<T> const"

Subject: [Boost-bugs] [Boost C++ Libraries] #3878: "ptr_map<T>::auto_type const" acts like "std::auto_ptr<T const>" instead of "std::auto_ptr<T> const"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-29 20:42:58


#3878: "ptr_map<T>::auto_type const" acts like "std::auto_ptr<T const>" instead of
"std::auto_ptr<T> const"
--------------------------------------+-------------------------------------
 Reporter: ryan.gallagher@… | Owner: nesotto
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: ptr_container
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
--------------------------------------+-------------------------------------
 the ptr_map<T>::auto_type doesn't act quite as much like std::auto_ptr<T>
 as the documentation declares. The reason is that it seems to follow
 container const semantics instead of pointer const semantics. Namely,
 "ptr_map<T>::auto_type const" acts more like "std::auto_ptr<T const>"
 instead of "std::auto_ptr<T> const". In reading the documentation I would
 have expected the latter instead of the former treatment of const on this
 type.

 It should be considered which is the appropriate way to handle const for
 this type. If the existing behavior is desired then a note should be
 added to the documentation. If instead const pointer semantics are
 desirable then changing the code should be considered.

 This may apply to other pointer containers as well, I haven't investigated
 this.

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