|
Boost : |
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-02-09 17:53:41
Johan Johansson wrote:
>That sounds like a local convention to me. Actually it sounds like
>something a C programmer would think to me. Why pass anything by pointer
>unless you have to?
>
>
I think Bjarne Stroustrup expressed this sentiment once, although I
personally disagree.
The reason is simple: call-by-reference and call-by-value have no
visible difference at the call site, which could therefore make changes
to the arguments unexpected.
Sebastian Redl
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk