
26 Apr
2004
26 Apr
'04
2:12 p.m.
Vladimir Prus <ghost@cs.msu.su> 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