const(Rvalue) resolved to different overloads

safety0ff via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 31 21:18:35 PST 2016


On Thursday, 29 December 2016 at 22:54:35 UTC, Ali Çehreli wrote:
>
> Can you explain that behavior?

What about: http://dlang.org/spec/const3.html#implicit_conversions
"An expression may be converted from mutable or shared to 
immutable if the expression is unique and all expressions it 
transitively refers to are either unique or immutable."


More information about the Digitalmars-d mailing list