Return by 'ref' problems...
bearophile
bearophileHUGS at lycos.com
Fri May 4 04:11:12 PDT 2012
Jonathan M Davis:
> That's thanks to the nonsense that putting const on the
> left-hand side of a
> member function is legal, making it so that you _must_ use
> parens with const
> and return types for the const to apply to the return type
> rather than the function.
In Phobos there is a closed enhancement request about this. I
suggest to add to that closed thread all the troubles/bugs we
find in the forums. Maybe eventually Walter will change his mind
on this.
Bye,
bearophile
More information about the Digitalmars-d
mailing list