[Exceptional C++ Style] Exceptional C++ Style - Item 24: Cons tant Optimization
Hammond, Peter
peter.hammond at amsjv.com
Thu Jan 27 05:36:33 EST 2005
> -----Original Message-----
> From: David Nash [mailto:David.Nash at WallStreetSystems.com]
> Sent: 24 January 2005 11:42
> To: effective-cpp at accu.org
> Subject: [Exceptional C++ Style] Exceptional C++ Style - Item 24:
> Constant Optimization
>
<most of summary snipped>
> The guideline for this item is therefore: Avoid passing by
> const value -
> prefer const reference instead, even for cheap-to-copy
> objects like ints.
>
Sorry to come in late again, but shouldn't that be "*except* for
cheap-to-copy objects"?
Pete
[ *** LongSig auto truncated *** ]
More information about the Effective-cpp
mailing list