|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-10-06 15:08:36
You're right. What's your opinion of my dangling-reference killer?
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
> > does any of this require "type unwinding?". I don't think it requires
more
> > than ref/const_ref detection.
>
> We need to strip the reference (and the const) from result_type to get a
> value_type for the iterator, unfortunately; and remove_reference doesn't
> work on broken compilers.
>
> The only solution I see is to pass the value_type to
> make_projection_iterator explicitly.
===================================================
David Abrahams, C++ library designer for hire
resume: http://users.rcn.com/abrahams/resume.html
C++ Booster (http://www.boost.org)
email: david.abrahams_at_[hidden]
===================================================
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk