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


> > > 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.

Ahhh and BTW, the half of Spirit/Phoenix is built on const references used
only for the purpose to copy the value afterwards.

Regards Hartmut