Tagging of arguments ref/out, or just out

bearophile bearophileHUGS at lycos.com
Mon Aug 8 18:04:25 PDT 2011


Ziad Hatahet:

> FWIW, Google's C++ style guide explicitly requires passing pointers to
> arguments (whenever possible) when they are to be modified or used as out
> parameters, and passed by const& when they are not.

It's here:
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Reference_Arguments

Bye,
bearophile


More information about the Digitalmars-d mailing list