From 69df402f707b746277f9d71266a377a0e9f3c858 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 11 Jan 2004 00:03:09 +0000 Subject: [PATCH] Updated pointee and indirect_reference so that pointee represents the immutability of the pointed-to type via const qualification. The pointee of a proxy-based iterator will be const qualified unless a mutable reference to the value_type can be bound to the returned proxy. Added a test for pointee Fixed iterator_facade so operator[] result type computation didn't cause a problem with abstract types. Updated iterator_facade operator[] docs for accuracy. Allowed Borland to simply fail the indirect_iterator_member_types test because of its lame const-dropping, instead of trying to work around it. [SVN r21579] --- include/boost/indirect_reference.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/indirect_reference.hpp b/include/boost/indirect_reference.hpp index 51fedb1..a10453e 100755 --- a/include/boost/indirect_reference.hpp +++ b/include/boost/indirect_reference.hpp @@ -11,6 +11,7 @@ # include # include # include +# include namespace boost { @@ -19,7 +20,7 @@ namespace detail template struct smart_ptr_reference { - typedef typename P::element_type& type; + typedef typename boost::pointee

::type& type; }; }