Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2007-11-17 16:43:32


Author: nesotto
Date: 2007-11-17 16:43:32 EST (Sat, 17 Nov 2007)
New Revision: 41185
URL: http://svn.boost.org/trac/boost/changeset/41185

Log:
minor change to define the value type of the iterators better
Text files modified:
   trunk/boost/ptr_container/detail/void_ptr_iterator.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/ptr_container/detail/void_ptr_iterator.hpp
==============================================================================
--- trunk/boost/ptr_container/detail/void_ptr_iterator.hpp (original)
+++ trunk/boost/ptr_container/detail/void_ptr_iterator.hpp 2007-11-17 16:43:32 EST (Sat, 17 Nov 2007)
@@ -18,6 +18,7 @@
 
 #include <boost/config.hpp>
 #include <boost/iterator/iterator_traits.hpp>
+#include <boost/type_traits/remove_const.hpp>
 
 namespace boost
 {
@@ -29,7 +30,8 @@
         class void_ptr_iterator
         {
         public:
- typedef T value_type;
+ typedef BOOST_DEDUCED_TYPENAME boost::remove_const<T>::type
+ value_type;
             typedef T& reference;
             typedef T* pointer;
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk