Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-12-29 12:52:12

----- Original Message -----
From: "Jeremy Siek" <jsiek_at_[hidden]>

> If you want to use a function returning a reference, use projection
> iterator instead of transform.
> Also, using IteratorTraits::pointer for the pointer type is not going to
> work. Suppose the transform function converts int's to std::string's.
> IteratorTraits::pointer is going to be int*, but doesn't it make more
> sense to have std::string* as the pointer type?

With that I am in agreement. On the other hand, there's no reason
integer_range couldn't have a legitimate reference type and so remain a
legitimate RandomAccessIterator.


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