
Aleksey Gurtovoy <agurtovoy@meta-comm.com> writes:
Currently 'iterator_adaptor' exposes its underlying iterator _object_ (through 'base()'), but not its type, which stands in the way of a generic code manipilating adapted iterators/sequences, e.g.:
template< typename Sequence > mtn::iterator_range< typename Sequence::iterator::base_type > // ^^^^^^^^^^^ // currently unavailable base_view( Sequence& seq ) { return mtn::make_iterator_range( seq.begin().base() , seq.end().base() ); }
Any objections if I add the typedef (and update the docs correspondingly)?
None. -- Dave Abrahams Boost Consulting www.boost-consulting.com