Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2002-10-13 12:27:01


David Abrahams wrote:
>
> Daniel Frey <daniel.frey_at_[hidden]> writes:
>
> A const& is not a transparent replacement for a value in other
> ways. Consider:
>
> const iterator& x = c.end();
> c.insert(start, finish);
> // is x valid here, or dangling?

'const iterator x = c.end();' won't be any better, would it? Maybe I
need some more explainations here :))

Regards, Daniel

--
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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