[Issue 5575] Problem with a map() of a const uniq()

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5575

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 5575] Problem with a map() of a const uniq()

2012-02-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5575



--- Comment #1 from bearophile_h...@eml.cc 2012-02-03 15:41:44 PST ---
This seems related, DMD 2.058head:


import std.algorithm, std.array;
void main() {
auto s1 = hello;
auto m1 = map!(c = c)(s1);
auto a1 = array(m1); // OK
auto s2 = hellod;
auto m2 = map!(c = c)(s2);
auto a2 = array(m2); // line 8, Error
}


...\dmd2\src\phobos\std\array.d(55): Error: result[i] isn't mutable
test.d(8): Error: template instance std.array.array!(Result) error
instantiating

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---