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

Reply via email to