digitalmars.D.bugs - [Issue 13254] New: Cannot instantiate std.container.Array with
- via Digitalmars-d-bugs (22/22) Aug 04 2014 https://issues.dlang.org/show_bug.cgi?id=13254
https://issues.dlang.org/show_bug.cgi?id=13254 Issue ID: 13254 Summary: Cannot instantiate std.container.Array with immutables as T Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: maidenphil hotmail.com Using dmd distribution 2.065. This does not compile: std.container.Array!(immutable(dchar)) array; Error: The error seems to be caused because Array.Payload uses destroy on an immutable type and that makes the compiler cry. I see that the code has been updated to support "elaborate destructors", but I don't think it will prevent the problem. Thx! --
Aug 04 2014