From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-16 08:26:34
From: "David Abrahams" <dave_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
> > 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
> > footnote is over the top. :-)
> Suggest some improved wording.
The wording is perfectly fine. It's simply missing the two or three
sentences that we already went over.
> > Isn't this a defect report material?
> I don't know, what would the defect be?
Good question. There is no defect in the strict sense of the word. But do
you like the current situation, where you are forced to cripple all
iterators generated by the library just because someone _might_ do an
iterator that returns by value from ?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk