encoding all aliases options in .opt files
Ian Lance Taylor
iant@google.com
Sat Oct 13 20:11:00 GMT 2012
On Sat, Oct 13, 2012 at 11:33 AM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
>
> 1) Are references allowed now that C++ is the default?
I'm not sure we addressed those in the coding conventions. I would like to say:
1) const references are always fine;
2) non-const references as local variables are always fine;
3) non-const references as function parameters should never be used
without a really excellent reason.
The reason is simply that using non-const references as function
parameters means that arguments passed to a function can change
without any indication, and that is potentially quite confusing.
Adding an & before an output argument is easy enough, and we're all
used to it.
Ian
More information about the Gcc-patches
mailing list