May 17, 2013 [Issue 10104] New: std.algorithm.group of a const array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10104 Summary: std.algorithm.group of a const array Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2013-05-17 05:08:04 PDT --- import std.algorithm: group; void main() { const a = [1, 1, 2, 2]; a.group; } DMD 2.063beta2: ...\dmd2\src\phobos\std\algorithm.d(3326): Error: cannot modify struct this._current Tuple!(const(int), uint) with immutable members temp.d(4): Error: template instance std.algorithm.group!("a == b", const(int)[]) error instantiating ...\dmd2\src\phobos\std\algorithm.d(3358): Error: cannot modify struct ret._current Tuple!(const(int), uint) with immutable members -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation