Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-15 09:53:07


From: "David Abrahams" <dave_at_[hidden]>
>
> Any iterator which stores the referent of its operator* within the
iterator
> object is an example that causes serious memory problems if operator[]
> returns a reference.
>
> That's a legal technique for random-access iterators.
>
> :(

I see, the temporary is (a + n). I am a big fan of conciseness, but that [4]
footnote is over the top. :-)

Isn't this a defect report material?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk