.opAssign disabled without @disable

Alex Parrill via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 16 08:15:18 PDT 2016


On Saturday, 16 April 2016 at 11:48:56 UTC, denizzzka wrote:
> Hi!
>
> DMD and LDC2 complain about disabled opAssign, but I am not 
> used @disable and depend package "gfm" also isn't uses @disable.
>
> ...

Try removing the const from this line:

debug private const bool isLeafNode = false;

I suspect that D is disabling whole-structure assignment since 
allowing it would mean that the constant `isLeafNode` could be 
changed.


More information about the Digitalmars-d-learn mailing list