Implicit conversion to mutable if no indirections?
Mathias LANG
pro.mathias.lang at gmail.com
Sat Sep 3 08:32:57 UTC 2022
On Saturday, 3 September 2022 at 01:50:05 UTC, Steven
Schveighoffer wrote:
>
> The one exception to the "exact type" rule is for arrays and
> pointers, which automatically convert to their tail versions.
> This is a special case for the benefit of range code.
>
> Perhaps the same rules should be done for value types?
>
> -Steve
I think it's also done to reduce the number of template
instantiations.
And I agree, it should be done for value types.
More information about the Digitalmars-d
mailing list