Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
August 06, 2014 [Issue 13254] Cannot instantiate std.container.Array with immutables as T | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13254 Phil Lavoie <maidenphil@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS|Windows |All --- Comment #1 from Phil Lavoie <maidenphil@hotmail.com> --- (In reply to Phil Lavoie from comment #0) > 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! If a struct can have an elaborate destructor and be const/immutable at the same time, this seems like it will not compile. -- |
August 06, 2014 [Issue 13254] Cannot instantiate std.container.Array with immutables or consts as T | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13254 Phil Lavoie <maidenphil@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Cannot instantiate |Cannot instantiate |std.container.Array with |std.container.Array with |immutables as T |immutables or consts as T -- |
December 17, 2022 [Issue 13254] Cannot instantiate std.container.Array with immutables or consts as T | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13254 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
December 01 [Issue 13254] Cannot instantiate std.container.Array with immutables or consts as T | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13254 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10079 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation