From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-10-06 11:17:48
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
> I have a function that I want to use with projection_iterator. It has to
> return a reference - this is a projection_iterator requirement.
> Bottom line, make_projection_iterator should handle value_type (optional
> dangerous - for compatibility only; the function object may indeed return
> value), value_type &, and value_type const & as possible result_types, and
> produce a const/non-const iterator accordingly.
I'm having trouble reconciling your two statements. Are you saying that
make_projection_iterator should get value_type from
add_reference<result_type> under the assumption that result_type may not be
the real result type?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk