Boost logo

Boost Users :

Subject: [Boost-users] Adding constness to an iterator
From: er (erwann.rogard_at_[hidden])
Date: 2009-01-21 01:39:14


Hello,

I'm looking to define AddConst to be used as below:

template<typename BaseIter>
class my_iter
   : public iterator_adaptor<
         my_iter<AddConst<BaseIter>::type>,
         AddConst<BaseIter>::type>{
//...
};

I guess add_const<range_iterator<X>::type> is not the same as
range_iterator<add_const<X>::type>::type, otherwise I could just take
AddConst = add_const.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net