On Sat, 19 Feb 2005 05:00:18 +0000, Guy Harrison wrote:

> Pass by const ref

Pass by reference is necessary for virtual dispatch sometimes.
However, pass by value should be faster if the argument
is an rvalue, the cost of passing is zero in that case.

So for small objects where copying is reasonably fast
pass by value is probably faster in general, even
if the argument is an lvalue and has to be copied.

_______________________________________________
Help-gplusplus mailing list
Help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to