Adding constness to an iterator

Hello,
I'm looking to define AddConst to be used as below:
template<typename BaseIter>
class my_iter
: public iterator_adaptor<
my_iter

on Wed Jan 21 2009, er
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>{ //... };
There's always boost::add_const in the TypeTraits library, but...
I guess add_const
is not the same as range_iterator ::type, otherwise I could just take AddConst = add_const.
...exactly, and that's going to be a problem for
my_iter
participants (2)
-
David Abrahams
-
er