digitalmars.D.bugs - [Issue 10104] New: std.algorithm.group of a const array
- d-bugmail puremagic.com (29/29) May 17 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10104
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 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: -------
May 17 2013