
9 Dec
2004
9 Dec
'04
5:24 p.m.
David Abrahams wrote:
Eric Niebler wrote:
Rationale: Given some iterator of type T that is built of an unknown number of adaptors, extract the underlying iterator. Consider:
template<class Iter> typename disable_if<is_adapted<Iter>,Iter>::type base(Iter const & it) { return it; }
template<class D,class B,class V,class T,class R,class Di> ?????????? base(iterator_adaptor<D,B,V,T,R,Di> const & it) { return base(it.base()); }
I can't think of a way to write the return type of the second overload.
I am not fully awake yet, but isn't that just B ? Thomas -- Thomas Witt witt@acm.org