|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-04-26 09:12:48
Vladimir Prus <ghost_at_[hidden]> writes:
>>> but it that I'm not sure what operator++(int) should return...
>
> That's the important question. Writable non-lvalue iterator cannot return a
> proxy storing the value inside, since there's no value to store. So making
> iterator_facade return proxy with stored value for all non-lvalue iterators
> is too simple solution :-(
Actually I think a proxy storing the iterator_facade's "reference"
type is probably enough. Think about it.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk