Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-06 23:20:51

Hi Jeremy and/or anyone else who cares,

I am thinking that the iterator adaptor library is overly enthusiastic in
selecting the operator_arror_proxy for the result of its operator->()
whenever the iterator is no more refined than InputIterator. Shouldn't we
also ask whether the associated reference type is not a reference before we
resort to the proxy? That would be more efficient for lots of cases, and
would even enable operator->() when iterator_adaptor is used to iterate over
an abstract class.

Have I missed something?


  David Abrahams, C++ library designer for hire

        C++ Booster (
          email: david.abrahams_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at