Call site 'ref'

bearophile bearophileHUGS at lycos.com
Sun Jan 15 11:33:06 PST 2012


Tobias Pankrath:

> > I also know that people dislike using reference parameters in C++ due to
> > the lack of visibility at the call site (causing them to use pointers).
> 
> Which is true for me. Every single one of my reference parameters is const 
> ref or pointer.

(What you do is also required by the Google C++ style guide.)
So your experience favors the use of callsite "ref" for nonconst ref arguments :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list