[Boost-bugs] [Boost C++ Libraries] #1421: ptr_map reference type is not a reference

Subject: [Boost-bugs] [Boost C++ Libraries] #1421: ptr_map reference type is not a reference
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-08 18:06:54


#1421: ptr_map reference type is not a reference
--------------------------------------------------------+-------------------
 Reporter: Bill Buklis <boostuser_at_[hidden]> | Owner: nesotto
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: ptr_container
  Version: Boost 1.34.1 | Severity: Regression
 Keywords: ptr_map, ptr_container, reference, typedef |
--------------------------------------------------------+-------------------
 The "reference" typedef in ptr_map and also ptr_multimap is not defined as
 a reference. This can be easily demonstrated with the following code:


 {{{
 typedef std::map<int,int*> STDCTR;
 typedef boost::ptr_map<int,int> PTRCTR;

 bool isrefstdit = boost::is_reference<STDCTR::iterator::reference>::value;
 bool isrefstdval = boost::is_reference<STDCTR::reference>::value;
 bool isrefptrit = boost::is_reference<PTRCTR::iterator::reference>::value;
 bool isrefptrval = boost::is_reference<PTRCTR::reference>::value;
 }}}

 is_reference returns true for std::map, but false for boost::ptr_map.
 This was correct in v1.33.1, but is not in v1.34.1.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1421>
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:56 UTC