Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2004-01-10 03:21:46


David Abrahams wrote:

> > Executive summary: the reference wins. It doesn't really
> matter. You
> > knew that already.
>
> Yep, my tests show the same. That's a relief to me,
> actually. I wonder what Andrei was on about?

Using a const reference is actually a guarantied optimization, using a value
_may_ result in some optimization on certain compilers, but if this possible
optimization is applied by the compiler, it isn't more aggressive than the
hand made one.

Regards Hartmut


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