$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Bill Buklis (boostuser_at_[hidden])
Date: 2007-10-11 16:11:24
I found what seems to be an inconsistency in ptr_map in version 1.34.1
versus 1.33.1. The "reference" typedef in 1.34.1 does not appear to be a
reference. The following code illustrates what I mean:
typedef std::map<int, int> STDMAP;
typedef boost::ptr_map<int, int> PTRMAP;
bool isrefstdmap =
boost::is_reference<STDMAP::iterator::reference>::value;
bool isrefstdbase = boost::is_reference<STDMAP::reference>::value;
bool isrefptrmap =
boost::is_reference<PTRMAP::iterator::reference>::value;
bool isrefptrbase = boost::is_reference<PTRMAP::reference>::value;
In version 1.33.1 all bool values equate to true, while in 1.34.1 ptr_map
evaluates to false.
In case the compiler makes a difference, I'm using VC++ 2005.
-- Bill Buklis --